Links angepasst
This commit is contained in:
parent
7899b2004c
commit
57d8ba1121
|
|
@ -388,7 +388,7 @@ function updateGroupName(){
|
|||
success: function( data )
|
||||
{
|
||||
if(data['success']){
|
||||
//window.location.href = window.location.href + "?showtoast=true";
|
||||
window.location.href = window.location.href + "?showtoast=true";
|
||||
$("#newGroup").modal("toggle");
|
||||
}
|
||||
else{
|
||||
|
|
|
|||
|
|
@ -780,7 +780,7 @@ def SettingsAjaxRouter(request):
|
|||
|
||||
data = {"userid" : usertoremove.pk, "groupid" : aggroup.pk, "user_fname" : usertoremove.first_name, "user_lname" : usertoremove.last_name}
|
||||
# User add
|
||||
# NC ADD USER TO GROUP
|
||||
# NC REMOVE USER FROM GROUP
|
||||
# first_name and last_name CHANGE - Update in NC as DisplayName
|
||||
headers = {
|
||||
'Accept' : 'application/json',
|
||||
|
|
|
|||
|
|
@ -109,6 +109,10 @@ def checkUserDirRights(request, startdir, userid):
|
|||
canview = False
|
||||
return canview
|
||||
|
||||
# NEW FOR NC
|
||||
import requests
|
||||
from django.conf import settings
|
||||
from digitaleagentur.utils import *
|
||||
|
||||
@login_required
|
||||
def StandardAdd(request, id=False):
|
||||
|
|
@ -242,7 +246,19 @@ def StandardAdd(request, id=False):
|
|||
editorForm = StandardAddStandardEditor(instance=request.user)
|
||||
|
||||
|
||||
|
||||
possibleFilesByVisible = []
|
||||
# NC FILE
|
||||
# Data for the new User
|
||||
if(request.user.is_authenticated and getNCLoggedUserBySession(request.COOKIES['nc_session_id'])):
|
||||
|
||||
data_nc = {
|
||||
"Depth" : 0
|
||||
}
|
||||
|
||||
nc_login_headers = {'Authorization' : 'Bearer ' + request.COOKIES['nc_session_id']}
|
||||
r = requests.request("PROPFIND", settings.NEXTCLOUD_URL + "remote.php/dav/files/" + request.user.username + "/Agenturdaten_1/", headers=nc_login_headers, data=data_nc)
|
||||
print(r.text)
|
||||
|
||||
allfiles = DataFile.objects.filter(agency=request.user.profile.agency)
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<script src="{%static 'users/js/jquery.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
window.location.replace("http://localhost:8080/external/1");
|
||||
window.location.replace("http://cloud.digitale-agentur.com/external/1");
|
||||
localStorage.clear();
|
||||
})
|
||||
</script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<script src="{%static 'users/js/jquery.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
window.location.replace("http://localhost:8080/external/1");
|
||||
window.location.replace("cloud.digitale-agentur.com/external/1");
|
||||
localStorage.clear();
|
||||
})
|
||||
</script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<script src="{%static 'users/js/jquery.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
window.location.replace("http://localhost:8080/external/1");
|
||||
window.location.replace("cloud.digitale-agentur.com/external/1");
|
||||
localStorage.clear();
|
||||
})
|
||||
</script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<script src="{%static 'users/js/jquery.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
window.location.replace("http://localhost:8080/external/1");
|
||||
window.location.replace("cloud.digitale-agentur.com/external/1");
|
||||
localStorage.clear();
|
||||
})
|
||||
</script>
|
||||
Loading…
Reference in New Issue