forked from el-cms/Acl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
84 lines (70 loc) · 2.69 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
App::uses('AclRouter', 'Acl.Lib');
/* -------------------------------------------------------------------
* The settings below have to be loaded to make the acl plugin work.
* -------------------------------------------------------------------
*
* See how to include these settings in the README file
*/
/*
* The model name used for the user role (typically 'Role' or 'Group')
*/
Configure :: write('acl.aro.role.model', 'Role');
/*
* The primary key of the role model
*
* (can be left empty if your primary key's name follows CakePHP conventions)('id')
*/
Configure :: write('acl.aro.role.primary_key', '');
/*
* The foreign key's name for the roles
*
* (can be left empty if your foreign key's name follows CakePHP conventions)(e.g. 'role_id')
*/
Configure :: write('acl.aro.role.foreign_key', '');
/*
* The model name used for the user (typically 'User')
*/
Configure :: write('acl.aro.user.model', 'User');
/*
* The primary key of the user model
*
* (can be left empty if your primary key's name follows CakePHP conventions)('id')
*/
Configure :: write('acl.aro.user.primary_key', '');
/*
* The name of the database field that can be used to display the role name
*/
Configure :: write('acl.aro.role.display_field', 'name');
/*
* You can add here role id(s) that are always allowed to access the ACL plugin (by bypassing the ACL check)
* (This may prevent a user from being rejected from the ACL plugin after a ACL permission update)
*/
Configure :: write('acl.role.access_plugin_role_ids', array());
/*
* You can add here users id(s) that are always allowed to access the ACL plugin (by bypassing the ACL check)
* (This may prevent a user from being rejected from the ACL plugin after a ACL permission update)
*/
Configure :: write('acl.role.access_plugin_user_ids', array(1));
/*
* The users table field used as username in the views
* It may be a table field or a SQL expression such as "CONCAT(User.lastname, ' ', User.firstname)" for MySQL or "User.lastname||' '||User.firstname" for PostgreSQL
*/
Configure :: write('acl.user.display_name', "User.username");
/*
* Indicates whether the presence of the Acl behavior in the user and role models must be verified when the ACL plugin is accessed
*/
Configure :: write('acl.check_act_as_requester', true);
/*
* Add the ACL plugin 'locale' folder to your application locales' folders
*/
App :: build(array('locales' => App :: pluginPath('Acl') . DS . 'locale'));
/*
* Indicates whether the roles permissions page must load through Ajax
*/
Configure :: write('acl.gui.roles_permissions.ajax', true);
/*
* Indicates whether the users permissions page must load through Ajax
*/
Configure :: write('acl.gui.users_permissions.ajax', true);
?>