def __init__(self, permissions_type, account, permissions, embedded=False): ModeratorPermissions.__init__( self, user=account, permissions_type=permissions_type, permissions=permissions, editable=True, embedded=embedded, )
def permissions_form(self): from r2.lib.permissions import ModeratorPermissionSet from r2.lib.pages import ModeratorPermissions return ModeratorPermissions( user=None, permissions_type=self.type, permissions=ModeratorPermissionSet(all=True), editable=True, embedded=True, )