Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Aug 13, 2024
1 parent 9925ec7 commit 8bbdd4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion website_code/php/management/modify_roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@

if(count($roles_to_unassign) > 0){
$questionMarks = "?";
$params = array($userid, $roles_to_unassign[0]);
for($i = 1; $i < count($roles_to_unassign);$i++){
$params[] = $roles_to_unassign[$i];
$questionMarks .= ", ?";

}
$query = "delete from logindetailsrole where userid=? and roleid in ({$questionMarks})";
$result = db_query($query, array($userid, ...$roles_to_unassign));
$result = db_query($query, $params);
if($result === false){
$return .= USERS_FAILED_REMOVE_ROLES . PHP_EOL;
}
Expand Down
2 changes: 1 addition & 1 deletion website_code/php/management/user_groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*
*/

if (is_user_permitted("useradmin", /*"projectadmin"*/)) {
if (is_user_permitted("useradmin")) {

$database_id = database_connect("user groups list connected","user groups list failed");

Expand Down

0 comments on commit 8bbdd4b

Please sign in to comment.