@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.es.js
CHANGED
@@ -447,7 +447,6 @@ const RoleYupSchema = Yup.object().shape({
|
|
447
447
|
});
|
448
448
|
function canRoleBeEdited(loggedUser) {
|
449
449
|
const loggedUserIsAdmin = loggedUser.roles?.map((r) => r.id).includes("admin");
|
450
|
-
console.log("loggedUserIsAdmin", loggedUser);
|
451
450
|
if (!loggedUserIsAdmin) {
|
452
451
|
throw new Error("Only admins can edit roles");
|
453
452
|
}
|