Skip to content

Commit

Permalink
Update class.ilSoapRBACAdministration.php
Browse files Browse the repository at this point in the history
removed the unnecessary check with the assignUser() Method.
  • Loading branch information
waddahadel authored May 10, 2024
1 parent e9836a8 commit 69abac9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions webservice/soap/classes/class.ilSoapRBACAdministration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@ public function addUserRoleEntry(string $sid, int $user_id, int $role_id)
return $this->raiseError('Check access failed. No permission to assign users', 'Server');
}

if (!$rbacadmin->assignUser($role_id, $user_id)) {
return $this->raiseError(
'Error rbacadmin->assignUser()',
'Server'
);
}

return true;
}

Expand Down

0 comments on commit 69abac9

Please sign in to comment.