fix right access and right on story elements per user

This commit is contained in:
aynsix
2020-03-12 16:16:41 +03:00
parent 900d56e09d
commit 597216429a
2 changed files with 19 additions and 4 deletions

View File

@@ -583,8 +583,8 @@ class Edit extends \Alchemy\Phrasea\Helper\Helper
$user = $this->app['repo.users']->find($usr_id);
$this->app->getAclForUser($user)->revoke_access_from_bases($delete)
->give_access_to_base($create)
->give_access_to_sbas($create_sbas);
->give_access_to_sbas($create_sbas) // give access to sbas before bas
->give_access_to_base($create);
foreach ($update as $base_id => $rights) {
$this->app->getAclForUser($user)