Skip to content

Commit

Permalink
Fixed issue #12786: Cannot delete users from user groups unless havin…
Browse files Browse the repository at this point in the history
…g Superadministrator permission
  • Loading branch information
c-schmitz committed Oct 13, 2017
1 parent e2586e2 commit 8142417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/UserGroup.php
Expand Up @@ -297,7 +297,7 @@ function searchMine($isMine)

$criteria->join .='LEFT JOIN {{users}} AS users ON ( users.uid = t.owner_id )';

if (!Permission::model()->hasGlobalPermission('superadmin','read'))
if (!Permission::model()->hasGlobalPermission('usergroups','read'))
{
if ($isMine)
{
Expand Down

0 comments on commit 8142417

Please sign in to comment.