User Tools

Site Tools


soft:server-apps-users

Users Application

Provide support for users, groups and roles.

Roles and permissions API

The following evaluation methods are available:

  • group.has_role(user, role) role: 'group_adim', 'node_admin' or 'slice_admin'
  • group.has_roles(user, roles) roles: list of roles, i.e. ['group_admin', 'slice_admin']
  • user.has_roles(roles) roles: list of roles
  • user.has_perm(perm, obj=None) perm: 'app.model_perm' i.e. 'nodes.node_view', obj is optional, i.e. obj=node12
soft/server-apps-users.txt · Last modified: 2014/03/26 17:41 by santiago