Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An application may define its own rights in the

Anchor
Listing - Defining authentication right
Listing - Defining authentication right

Code Block
languagecpp
titleListing - Defining authentication right
linenumberstrue
#include  <auth.h>                                                            (1)


#define  APP_FILE_READ_RIGHT     AUTH_RIGHT_0                                 (2)
#define  APP_FILE_WRITE_RIGHT   (AUTH_RIGHT_1 | APP_FILE_READ_RIGHT)          (3)
#define  APP_FILE_DELETE_RIGHT  (AUTH_RIGHT_2 | APP_FILE_WRITE_RIGHT)         (4)


Panel
bgColor#f0f0f0

(1) Include the auth.h file.

(2) The READ right can only read and is defined as right 0.

(3) The WRITE right can write and read, it is defined as right 0 and right 1.

(3) The DELETE right can delete, write and read, it is defined as right 0, right 1 and right 2.