Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@
];

// This has to be identical to the rolesMapping in the Auth0 dynamic-permissions script
// WARNING: If you add elements here, you need to make sure they're part of the permissions
// registered in Auth0!
$rolesToActions = [
'boxtribute_god' => [
'be_god',
Expand Down
2 changes: 2 additions & 0 deletions library/lib/auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ function updateRolePermissions($roleId, $resourseServerIdentifier, $methods)
return $res;
}

// If this fails with a 404, it's very likely that some of the submitted
// permissions are not actually registered as permissions in Auth0
throw new Exception($response->getReasonPhrase(), $response->getStatusCode());
}

Expand Down