Actions

GetGlobalBasePermissions

From LimeSurvey Manual

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

When

This event is fired before show the survey menu bar

Input

None

Possible output

  • globalBasePermissions : array for each new Permission
    'permissionName' =>[
      'create'      : boolean (optionnal)
      'read'        : boolean (optionnal)
      'update'      : boolean (optionnal)
      'delete'      : boolean (optionnal)
      'import'      : boolean (optionnal)
      'export'      : boolean (optionnal)
      'title'       : string, translated title/name
      'description' : string, translated description
      'img'         : string,icon name class
    ]

Best is to use

Example

    public function getGlobalBasePermissions() {
        $this->getEvent()->append('globalBasePermissions',array(
            'auth_webserver' => array(
                'create' => false,
                'update' => false,
                'delete' => false,
                'import' => false,
                'export' => false,
                'title' => gT("Use web server authentication"),
                'description' => gT("Use web server authentication"),
                'img' => 'usergroup'
            ),
        ));
    }