Ifd:getCurrentUserRigths

From dev.ifd-library.org

Jump to: navigation, search
boolean [] getCurrentUserRights(String session_id) throws IfdServerException

Method to retrieve the user rights of the user currently logged in on the system.

Input:

Return:

  • boolean [] An array of booleans which determines the current user rights.

User rights returned An array of 4 booleans is returned. The array determines the following user rights:

  • [0] Access right: read (true if the user has the right, false otherwise).
  • [1] Access right: write (true if the user has the right, false otherwise).
  • [2] Access right: user management (true if the user has the right, false otherwise).
  • [3] Access right: add comment (true if the user has the right, false otherwise).

API version 3

public function boolean [] getCurrentUserRights(
                                                        String session_id) 
                  throws IfdServerException

EXPRESS Heading

QUERY FUNCTION getCurrentUserRights: LIST OF BOOLEAN;

Return: List of Boolean with the following meaning:

  • [0] Access right: TRUE if user with the role has RO access;
  • [1] Access right: TRUE if user with the role has RW access;
  • [2] Access right: TRUE if user with the role can manage other users, roles and organizations (add, update, remove);
  • [3] Access right: (optional) TRUE if user can only comment concepts



Back to the API

Comments: