You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
roleColumn | string | Name of column in user table holding role id (used for foreign key in users table in a single role per user setup, or in the pivot table on multi-roles setup)
303
-
userColumn | string | Name of column in pivot table holding role id (only used in pivot table on multi-roles setup)
304
-
aliasColumn | string | Name of the column for the alias in the role table
305
-
idColumn | string | Name of the ID Column in users table
306
-
rolesTable | string | Name of Configure key holding all available roles OR class name of roles database table
307
-
usersTable | string | Class name of the users table.
308
-
pivotTable | string | Name of the pivot table, for a multi-group setup.
309
-
rolesTablePlugin | string | Name of the plugin for the roles table, if any.
310
-
pivotTablePlugin | string | Name of the plugin for the pivot table, if any.
311
-
multiRole | bool | True will enable multi-role/HABTM authorization (requires a valid join table).
312
-
superAdminRole | int | Id of the super admin role. Users with this role will have access to ALL resources.
313
-
superAdmin | int or string | Id/name of the super admin. Users with this id/name will have access to ALL resources. null/0/'0' disable it.
314
-
superAdminColumn | string | Column of super admin in user table. Default is idColumn option.
315
-
authorizeByPrefix | bool/array | If prefixed routes should be auto-handled by their matching role name or a prefix=>role map.
316
-
allowLoggedIn | bool | True will give authenticated users access to all resources except those using the `protectedPrefix`.
317
-
protectedPrefix | string/array | Name of the prefix(es) used for admin pages. Defaults to `Admin`.
318
-
autoClearCache | bool | True will generate a new ACL cache file every time.
319
-
aclFilePath | string | Full path to the auth_acl.ini. Can also be an array of multiple paths. Defaults to `ROOT . DS . 'config' . DS`.
320
-
aclFile | string | Name of the INI file. Defaults to `auth_acl.ini`.
321
-
aclAdapter | string | Class name, defaults to `IniAclAdapter::class`.
322
-
includeAuthentication | bool | Set to true to include public auth access into hasAccess() checks. Note, that this requires Configure configuration.
| roleColumn | string | Name of column in user table holding role id (used for foreign key in users table in a single role per user setup, or in the pivot table on multi-roles setup)|
303
+
| userColumn | string | Name of column in pivot table holding role id (only used in pivot table on multi-roles setup)|
304
+
| aliasColumn | string | Name of the column for the alias in the role table|
305
+
| idColumn | string | Name of the ID Column in users table|
306
+
| rolesTable | string | Name of Configure key holding all available roles OR class name of roles database table|
307
+
| usersTable | string | Class name of the users table.|
308
+
| pivotTable | string | Name of the pivot table, for a multi-group setup.|
309
+
| rolesTablePlugin | string | Name of the plugin for the roles table, if any.|
310
+
| pivotTablePlugin | string | Name of the plugin for the pivot table, if any.|
311
+
| multiRole | bool | True will enable multi-role/HABTM authorization (requires a valid join table).|
312
+
| superAdminRole | int | Id of the super admin role. Users with this role will have access to ALL resources.|
313
+
| superAdmin | int or string | Id/name of the super admin. Users with this id/name will have access to ALL resources. null/0/'0' disable it.|
314
+
| superAdminColumn | string | Column of super admin in user table. Default is idColumn option.|
315
+
| authorizeByPrefix | bool/array | If prefixed routes should be auto-handled by their matching role name or a prefix=>role map.|
316
+
| allowLoggedIn | bool | True will give authenticated users access to all resources except those using the `protectedPrefix`.|
317
+
| protectedPrefix | string/array | Name of the prefix(es) used for admin pages. Defaults to `Admin`.|
318
+
| autoClearCache | bool | True will generate a new ACL cache file every time.|
319
+
| aclFilePath | string | Full path to the auth_acl.ini. Can also be an array of multiple paths. Defaults to `ROOT . DS . 'config' . DS`.|
320
+
| aclFile | string | Name of the INI file. Defaults to `auth_acl.ini`.|
321
+
| aclAdapter | string | Class name, defaults to `IniAclAdapter::class`.|
322
+
| includeAuthentication | bool | Set to true to include public auth access into hasAccess() checks. Note, that this requires Configure configuration.|
323
323
324
324
## AuthUser Component
325
325
Add the AuthUserComponent and you can easily check permissions inside your controller scope:
0 commit comments