Auth_GrantRight

Description

Grants a right to a user as another user (limits the rights granted).

Files

auth.h / auth.c

Prototype

CPU_BOOLEAN  Auth_GrantRight (AUTH_RIGHT   right,
                              AUTH_USER   *p_user,
                              AUTH_USER   *p_as_user,
                              RTOS_ERR    *p_err)


Arguments

right

New right to grant.

p_user

Pointer to user object that will received the new right.

p_as_user

Pointer to user that has the permission level to do the action.

p_err

Pointer to variable that will receive the return error code from this function.

Returned Value

DEF_OK, if operation was successful.

DEF_FAIL, otherwise.

Callers

Application.

Notes / Warnings

None.