Declare user roles introduced by Attract
This commit is contained in:
@@ -20,6 +20,8 @@ ROLES_REQUIRED_TO_VIEW_ITEMS = {'demo', 'subscriber', 'admin'}
|
|||||||
|
|
||||||
class AttractExtension(PillarExtension):
|
class AttractExtension(PillarExtension):
|
||||||
has_project_settings = True
|
has_project_settings = True
|
||||||
|
user_roles = {'attract-user'}
|
||||||
|
user_roles_indexable = {'attract-user'}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._log = logging.getLogger('%s.AttractExtension' % __name__)
|
self._log = logging.getLogger('%s.AttractExtension' % __name__)
|
||||||
|
Reference in New Issue
Block a user