Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 506 Bytes

SuperuserAuthorize.md

File metadata and controls

18 lines (13 loc) · 506 Bytes

SuperuserAuthorize

Setup

SuperuserAuthorize is here to provide full permissions to specific "SUPER" users in your app.

$config['Auth']['authorize']['Users.Superuser'] = [
        //superuser field in the Users table
        'superuser_field' => 'is_superuser',
    ];

If the current user 'superuser_field' is true, he'll get full permissions in your app.

Note if you don't have superusers, you can disable the SuperuserAuthorize in AuthComponent initialization