@firecms/user_management 3.0.0-canary.205 → 3.0.0-canary.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js
CHANGED
@@ -459,7 +459,6 @@
|
|
459
459
|
});
|
460
460
|
function canRoleBeEdited(loggedUser) {
|
461
461
|
const loggedUserIsAdmin = loggedUser.roles?.map((r) => r.id).includes("admin");
|
462
|
-
console.log("loggedUserIsAdmin", loggedUser);
|
463
462
|
if (!loggedUserIsAdmin) {
|
464
463
|
throw new Error("Only admins can edit roles");
|
465
464
|
}
|