Skip to content
Snippets Groups Projects
Commit 39be220d authored by Moritz Strohm's avatar Moritz Strohm
Browse files

prevent temporary permissions to be deleted when managing them for one user, re #2158

Merge request studip/studip!2019
parent 9cbde5e9
No related branches found
No related tags found
No related merge requests found
...@@ -1125,6 +1125,8 @@ class Resources_ResourceController extends AuthenticatedController ...@@ -1125,6 +1125,8 @@ class Resources_ResourceController extends AuthenticatedController
} }
} }
$deleted_permissions = 0;
if (!$this->single_user_mode) {
//Now we must remove all permissions where the resource_id is given //Now we must remove all permissions where the resource_id is given
//and where the user_id is not in the $user_ids array which has been //and where the user_id is not in the $user_ids array which has been
//filled above. //filled above.
...@@ -1148,7 +1150,7 @@ class Resources_ResourceController extends AuthenticatedController ...@@ -1148,7 +1150,7 @@ class Resources_ResourceController extends AuthenticatedController
] ]
); );
} }
}
if (count($errors)) { if (count($errors)) {
PageLayout::postError( PageLayout::postError(
_('Die folgenden Fehler traten auf beim Speichern der Berechtigungen:'), _('Die folgenden Fehler traten auf beim Speichern der Berechtigungen:'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment