|
@@ -69,11 +69,7 @@ class LuticatePermissionsGroupsBusiness extends LuBusiness {
|
69
|
69
|
|
70
|
70
|
public static function edit($group_id, $permission_name, $permission_value)
|
71
|
71
|
{
|
72
|
|
- $perm = self::checkPermissionGroupName($group_id, $permission_name);
|
73
|
|
- if (is_null($perm)) {
|
74
|
|
- self::badInput("Permission not found");
|
75
|
|
- }
|
76
|
|
- LuticatePermissionsGroupsDataAccess::edit($group_id, $permission_name, $permission_value);
|
77
|
|
- return true;
|
|
72
|
+ self::del($group_id, $permission_name);
|
|
73
|
+ return self::add($group_id, $permission_name, $permission_value);
|
78
|
74
|
}
|
79
|
75
|
}
|