backend.utils.check_permissions
Permission check helpers.
Provides simple role-based access control functions used by API route handlers to guard admin- and editor-only endpoints.
- backend.utils.check_permissions.check_admin(current)[Quellcode]
Return
Trueif the current user has theadminrole.
- backend.utils.check_permissions.check_editor(current)[Quellcode]
Return
Trueif the current user has theadminoreditorrole.