HOW TO grant access permissions to different types of users

Talk and info about common issues and learn how to do almost anything with ApPHP Calendar

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6011
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO grant access permissions to different types of users

Postby administrator » Feb 24th, '10, 20:40

For user/s, that can add events, you have to write:

Code: Select all

$events_operations = array(
   'add'=>true,
   'edit'=>true,
   'details'=>true,
   'delete'=>true,
   'delete_by_range'=>true,
   'manage'=>true
);
$objCalendar->SetEventsOperations($events_operations);


For other members, who can only view calendar, write:

Code: Select all

$events_operations = array(
   'add'=>false,
   'edit'=>false,
   'details'=>false,
   'delete'=>false,
   'delete_by_range'=>false,
   'manage'=>false
);
$objCalendar->SetEventsOperations($events_operations);


You can use any other configuration of SetOperations() parameters to suit your needs or define different permissions for different types of users in your system.

Return to “ApPHP Calendar {HOW TO}”