def get_access_key(obj): if 'published' in obj.state: return ['always'] else: result = serialize_roles((('Owner', obj), 'SiteAdmin', 'Moderator', 'Admin')) return result
def get_access_key(obj): if 'published' in obj.state: return ['always'] else: result = serialize_roles( (('Owner', obj), 'SiteAdmin', 'Moderator', 'Admin')) return result
def get_access_key(obj): if 'published' in obj.state: return ['always'] else: result = serialize_roles((('Owner', obj), 'GameResponsible')) return result
def get_access_key(obj): result = serialize_roles(('NewsletterResponsible', 'Admin')) return result
def get_access_key_account(obj): site = get_site_folder(True) return serialize_roles((("Owner", obj), ("SiteAdmin", site), 'Admin'))
def get_access_key(obj): return serialize_roles(('Admin',))
def get_access_key_site(obj): return serialize_roles((("SiteAdmin", obj), 'Admin'))
def get_access_key(obj): if 'published' in obj.state: return ['always'] else: return serialize_roles(('SiteAdmin', 'Journalist', 'Moderator'))
def get_access_key_reg(obj): return serialize_roles(('Admin', 'SiteAdmin'))
def get_access_key_group(obj): if 'published' in obj.state: return ['always'] else: return serialize_roles(('Admin',))
def get_access_key_group(obj): if 'published' in obj.state: return ['always'] else: return serialize_roles(('Admin', ))
def get_access_key(obj): if 'published' in obj.state: return ['always'] else: site = get_site_folder(True) return serialize_roles((('Owner', obj), ('SiteAdmin', site), 'Admin'))
def get_access_key(obj): result = serialize_roles((('Owner', obj), 'SiteAdmin', 'Admin')) return result
def get_access_key(obj): return serialize_roles((('OrganizationMember', obj), 'Admin'))
def get_access_key(obj): site = get_site_folder(True) return serialize_roles((('SiteAdmin', site), 'Admin'))
def get_access_key(obj): return serialize_roles(('Admin', ))