Skip to content
Snippets Groups Projects
Commit 6dc58c33 authored by Sebastian's avatar Sebastian
Browse files

feat(component-invite): add editor in chief to authsome

parent 9dc13d92
No related branches found
No related tags found
No related merge requests found
......@@ -183,8 +183,8 @@ const authsomeMode = async (userId, operation, object, context) => {
// authorization/authsome mode, e.g.
const user = await context.models.User.find(userId)
// Admins can do anything
if (user && user.admin === true) return true
// Admins and editor in chiefs can do anything
if (user && (user.admin === true || user.editorInChief === true)) return true
if (user) {
return authenticatedUser(user, operation, object, context)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment