示例#1
0
def they_can_delete_standardtekster(user, they):
    if is_administrator(user):
        they.can(DELETE, 'StandardTekst')
示例#2
0
def they_can_put_standardtekster(user, they):
    if is_administrator(user):
        they.can(PUT, 'StandardTekst')
示例#3
0
def they_can_put_tilskuddsordninger(user, they):
    if is_administrator(user):
        they.can(PUT, 'Tilskuddsordning')
示例#4
0
def they_can_get_standardtekster(user, they):
    if is_saksbehandler(user) or is_administrator(user):
        they.can(GET, 'StandardTekst')
示例#5
0
def they_can_get_tilskuddsordninger(user, they):
    if is_administrator(user) or is_saksbehandler(user) or is_godkjenner(user):
        they.can(GET, 'Tilskuddsordning')
    elif is_soker(user):
        they.can(GET, 'Tilskuddsordning', if_tilskuddsordning_is_published)