Skip to content

Commit

Permalink
Update user_group.php
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 authored Feb 1, 2024
1 parent bc543d8 commit 3048781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/admin/model/user/user_group.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ public function removePermission($user_group_id, $type, $route) {
}
}

function removePermissions($route ) {
public function removePermissions($route ) {
$user_groups = $this->getUserGroups();

foreach ($user_groups as $user_group) {
$user_group_id = $user_group['user_group_id'];
$permission = $user_group['permission'];

if (!empty($permission)) {
$permission = json_decode($permission,true);
$permission = json_decode($permission, true);

if (!empty($permission['access'])) {
$this->removePermission($user_group_id, 'access', $route);
Expand Down

0 comments on commit 3048781

Please sign in to comment.