def on_get(self, req, resp, client, user): cas = Authorization(client) resp.body = {'results': cas.get_user_permissions(user)}
def on_get(self, req, resp, client, role): cas = Authorization(client) resp.body = {'results': cas.get_permissions(role)}
def on_delete(self, req, resp, client, group, name): cas = Authorization(client) resp.body={'result':False} if cas.del_permission(group, name): resp.body={'result':True}
def on_get(self, req, resp, client, user, name): cas = Authorization(client) resp.body={'result':False} if cas.user_has_permission(user,name): resp.body={'result':True}
def on_delete(self, req, resp, client, group): cas = Authorization(client) resp.body={'result':False} if cas.del_role(group): resp.body={'result':True}
def on_get(self, req, resp, client, user, name): cas = Authorization(client) resp.body = {'result': False} if cas.user_has_permission(user, name): resp.body = {'result': True}
def on_get(self, req, resp, client, name): cas = Authorization(client) resp.body = {'result': cas.which_users_can(name)}
def on_get(self, req, resp, client, name): cas = Authorization(client) resp.body = {'result':cas.which_users_can(name)}
def on_get(self, req, resp, client, user): cas = Authorization(client) resp.body = {'result': cas.get_user_roles(user)}
def on_get(self, req, resp, client): cas = Authorization(client) resp.body = {'result': cas.roles}
def on_get(self, req, resp, client, role): cas = Authorization(client) resp.body = {'result': cas.get_role_members(role)}
def on_post(self, req, resp, client, role): cas = Authorization(client) resp.body = {'result': False} if cas.add_role(role): resp.body = {'result': True}
def on_delete(self, req, resp, client, group): cas = Authorization(client) resp.body = {'result': False} if cas.del_role(group): resp.body = {'result': True}
def on_post(self, req, resp, client, role): cas = Authorization(client) resp.body={'result':False} if cas.add_role(role): resp.body={'result':True}
def on_delete(self, req, resp, client, user, group): cas = Authorization(client) resp.body = {'result': False} if cas.del_membership(user, group): resp.body = {'result': True}
def on_post(self, req, resp, client, user, group): cas = Authorization(client) resp.body={'result':False} if cas.add_membership(user, group): resp.body={'result':True}
def on_delete(self, req, resp, client, group, name): cas = Authorization(client) resp.body = {'result': False} if cas.del_permission(group, name): resp.body = {'result': True}