|
@@ -111,37 +111,67 @@ class LuticateBusiness
|
111
|
111
|
|
112
|
112
|
$route->post("$prefix/users/login", "${ns}LuticateUsersBusiness", "login");
|
113
|
113
|
$route->post("$prefix/users/logout", "${ns}LuticateUsersBusiness", "logout");
|
114
|
|
- $route->post("$prefix/users/add", "${ns}LuticateUsersBusiness", "add", LuticatePermissions::USER_ADD);
|
115
|
|
- $route->post("$prefix/users/$user_id/del", "${ns}LuticateUsersBusiness", "del", LuticatePermissions::USER_DEL);
|
116
|
|
- $route->post("$prefix/users/$user_id/edit", "${ns}LuticateUsersBusiness", "edit", LuticatePermissions::USER_EDIT);
|
117
|
|
- $route->post("$prefix/users/me/edit", "${ns}LuticateUsersBusiness", "editMe", LuticatePermissions::USER_EDIT_ME);
|
118
|
|
- $route->post("$prefix/users/$user_id/setPassword", "${ns}LuticateUsersBusiness", "setPassword", LuticatePermissions::USER_SET_PASSWORD);
|
119
|
|
- $route->post("$prefix/users/me/setPassword", "${ns}LuticateUsersBusiness", "setPasswordMe", LuticatePermissions::USER_SET_PASSWORD_ME);
|
120
|
|
-
|
121
|
|
-
|
122
|
|
- $route->post("$prefix/groups/add", "${ns}LuticateGroupsBusiness", "add", LuticatePermissions::GROUP_ADD);
|
123
|
|
- $route->post("$prefix/groups/$group_id/del", "${ns}LuticateGroupsBusiness", "del", LuticatePermissions::GROUP_DEL);
|
124
|
|
- $route->post("$prefix/groups/$group_id/edit", "${ns}LuticateGroupsBusiness", "edit", LuticatePermissions::GROUP_EDIT);
|
125
|
|
- $route->post("$prefix/groups/$group_id/addUser/$user_id", "${ns}LuticateGroupsBusiness", "addUser", LuticatePermissions::GROUP_ADD_USER);
|
126
|
|
- $route->post("$prefix/groups/$group_id/delUser/$user_id", "${ns}LuticateGroupsBusiness", "delUser", LuticatePermissions::GROUP_DEL_USER);
|
127
|
|
-
|
128
|
|
-
|
129
|
|
- $route->post("$prefix/permissions/effective/$user_id/$permission_name", "${ns}LuticatePermissionsBusiness", "getEffectivePermission", LuticatePermissions::PERM_EFFECTIVE_GET);
|
130
|
|
- $route->post("$prefix/permissions/effective/me/$permission_name", "${ns}LuticatePermissionsBusiness", "getEffectivePermissionMe");
|
131
|
|
-
|
132
|
|
- $route->post("$prefix/permissions/$permission_name", "${ns}LuticatePermissionsBusiness", "get", LuticatePermissions::PERM_GET);
|
133
|
|
- $route->post("$prefix/permissions/add/$permission_name/$permission_value", "${ns}LuticatePermissionsBusiness", "add", LuticatePermissions::PERM_ADD);
|
134
|
|
- $route->post("$prefix/permissions/$permission_name/del", "${ns}LuticatePermissionsBusiness", "del", LuticatePermissions::PERM_DEL);
|
135
|
|
- $route->post("$prefix/permissions/$permission_name/edit/$permission_value", "${ns}LuticatePermissionsBusiness", "edit", LuticatePermissions::PERM_EDIT);
|
136
|
|
-
|
137
|
|
- $route->post("$prefix/permissions/group/$group_id/$permission_name", "${ns}LuticatePermissionsGroupsBusiness", "get", LuticatePermissions::PERM_GROUP_GET);
|
138
|
|
- $route->post("$prefix/permissions/group/$group_id/add/$permission_name/$permission_value", "${ns}LuticatePermissionsGroupsBusiness", "add", LuticatePermissions::PERM_GROUP_ADD);
|
139
|
|
- $route->post("$prefix/permissions/group/$group_id/$permission_name/del", "${ns}LuticatePermissionsGroupsBusiness", "del", LuticatePermissions::PERM_GROUP_DEL);
|
140
|
|
- $route->post("$prefix/permissions/group/$group_id/$permission_name/edit/$permission_value", "${ns}LuticatePermissionsGroupsBusiness", "edit", LuticatePermissions::PERM_GROUP_EDIT);
|
141
|
|
-
|
142
|
|
- $route->post("$prefix/permissions/user/$user_id/$permission_name", "${ns}LuticatePermissionsUsersBusiness", "get", LuticatePermissions::PERM_USER_GET);
|
143
|
|
- $route->post("$prefix/permissions/user/$user_id/add/$permission_name/$permission_value", "${ns}LuticatePermissionsUsersBusiness", "add", LuticatePermissions::PERM_USER_ADD);
|
144
|
|
- $route->post("$prefix/permissions/user/$user_id/$permission_name/del", "${ns}LuticatePermissionsUsersBusiness", "del", LuticatePermissions::PERM_USER_DEL);
|
145
|
|
- $route->post("$prefix/permissions/user/$user_id/$permission_name/edit/$permission_value", "${ns}LuticatePermissionsUsersBusiness", "edit", LuticatePermissions::PERM_USER_EDIT);
|
|
114
|
+ $route->post("$prefix/users/add", "${ns}LuticateUsersBusiness", "add",
|
|
115
|
+ array(LuticatePermissions::USER_ADD, LuticatePermissions::USER_GET));
|
|
116
|
+ $route->post("$prefix/users/$user_id/del", "${ns}LuticateUsersBusiness", "del",
|
|
117
|
+ array(LuticatePermissions::USER_DEL, LuticatePermissions::USER_GET));
|
|
118
|
+ $route->post("$prefix/users/$user_id/edit", "${ns}LuticateUsersBusiness", "edit",
|
|
119
|
+ array(LuticatePermissions::USER_EDIT, LuticatePermissions::USER_GET));
|
|
120
|
+ $route->post("$prefix/users/me/edit", "${ns}LuticateUsersBusiness", "editMe",
|
|
121
|
+ LuticatePermissions::USER_EDIT_ME);
|
|
122
|
+ $route->post("$prefix/users/$user_id/setPassword", "${ns}LuticateUsersBusiness", "setPassword",
|
|
123
|
+ array(LuticatePermissions::USER_SET_PASSWORD, LuticatePermissions::USER_GET));
|
|
124
|
+ $route->post("$prefix/users/me/setPassword", "${ns}LuticateUsersBusiness", "setPasswordMe",
|
|
125
|
+ LuticatePermissions::USER_SET_PASSWORD_ME);
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+ $route->post("$prefix/groups/add", "${ns}LuticateGroupsBusiness", "add",
|
|
129
|
+ array(LuticatePermissions::GROUP_ADD, LuticatePermissions::GROUP_GET));
|
|
130
|
+ $route->post("$prefix/groups/$group_id/del", "${ns}LuticateGroupsBusiness", "del",
|
|
131
|
+ array(LuticatePermissions::GROUP_DEL, LuticatePermissions::GROUP_GET));
|
|
132
|
+ $route->post("$prefix/groups/$group_id/edit", "${ns}LuticateGroupsBusiness", "edit",
|
|
133
|
+ array(LuticatePermissions::GROUP_EDIT, LuticatePermissions::GROUP_GET));
|
|
134
|
+ $route->post("$prefix/groups/$group_id/addUser/$user_id", "${ns}LuticateGroupsBusiness", "addUser",
|
|
135
|
+ array(LuticatePermissions::GROUP_ADD_USER, LuticatePermissions::GROUP_GET));
|
|
136
|
+ $route->post("$prefix/groups/$group_id/delUser/$user_id", "${ns}LuticateGroupsBusiness", "delUser",
|
|
137
|
+ array(LuticatePermissions::GROUP_DEL_USER, LuticatePermissions::GROUP_GET));
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+ $route->post("$prefix/permissions/effective/$user_id/$permission_name", "${ns}LuticatePermissionsBusiness",
|
|
141
|
+ "getEffectivePermission", LuticatePermissions::PERM_EFFECTIVE_GET);
|
|
142
|
+ $route->post("$prefix/permissions/effective/me/$permission_name", "${ns}LuticatePermissionsBusiness",
|
|
143
|
+ "getEffectivePermissionMe");
|
|
144
|
+
|
|
145
|
+ $route->post("$prefix/permissions/$permission_name", "${ns}LuticatePermissionsBusiness", "get",
|
|
146
|
+ LuticatePermissions::PERM_GET);
|
|
147
|
+ $route->post("$prefix/permissions/add/$permission_name/$permission_value", "${ns}LuticatePermissionsBusiness",
|
|
148
|
+ "add", array(LuticatePermissions::PERM_ADD, LuticatePermissions::PERM_GET));
|
|
149
|
+ $route->post("$prefix/permissions/$permission_name/del", "${ns}LuticatePermissionsBusiness", "del",
|
|
150
|
+ array(LuticatePermissions::PERM_DEL, LuticatePermissions::PERM_GET));
|
|
151
|
+ $route->post("$prefix/permissions/$permission_name/edit/$permission_value", "${ns}LuticatePermissionsBusiness",
|
|
152
|
+ "edit", array(LuticatePermissions::PERM_EDIT, LuticatePermissions::PERM_GET));
|
|
153
|
+
|
|
154
|
+ $route->post("$prefix/permissions/group/$group_id/$permission_name", "${ns}LuticatePermissionsGroupsBusiness",
|
|
155
|
+ "get", LuticatePermissions::PERM_GROUP_GET);
|
|
156
|
+ $route->post("$prefix/permissions/group/$group_id/add/$permission_name/$permission_value",
|
|
157
|
+ "${ns}LuticatePermissionsGroupsBusiness", "add", array(LuticatePermissions::PERM_GROUP_ADD,
|
|
158
|
+ LuticatePermissions::PERM_GROUP_GET));
|
|
159
|
+ $route->post("$prefix/permissions/group/$group_id/$permission_name/del",
|
|
160
|
+ "${ns}LuticatePermissionsGroupsBusiness", "del", array(LuticatePermissions::PERM_GROUP_DEL,
|
|
161
|
+ LuticatePermissions::PERM_GROUP_GET));
|
|
162
|
+ $route->post("$prefix/permissions/group/$group_id/$permission_name/edit/$permission_value",
|
|
163
|
+ "${ns}LuticatePermissionsGroupsBusiness", "edit", array(LuticatePermissions::PERM_GROUP_EDIT,
|
|
164
|
+ LuticatePermissions::PERM_GROUP_GET));
|
|
165
|
+
|
|
166
|
+ $route->post("$prefix/permissions/user/$user_id/$permission_name", "${ns}LuticatePermissionsUsersBusiness",
|
|
167
|
+ "get", LuticatePermissions::PERM_USER_GET);
|
|
168
|
+ $route->post("$prefix/permissions/user/$user_id/add/$permission_name/$permission_value",
|
|
169
|
+ "${ns}LuticatePermissionsUsersBusiness", "add", array(LuticatePermissions::PERM_USER_ADD,
|
|
170
|
+ LuticatePermissions::PERM_USER_GET));
|
|
171
|
+ $route->post("$prefix/permissions/user/$user_id/$permission_name/del", "${ns}LuticatePermissionsUsersBusiness",
|
|
172
|
+ "del", array(LuticatePermissions::PERM_USER_DEL, LuticatePermissions::PERM_USER_GET));
|
|
173
|
+ $route->post("$prefix/permissions/user/$user_id/$permission_name/edit/$permission_value",
|
|
174
|
+ "${ns}LuticatePermissionsUsersBusiness", "edit", array(LuticatePermissions::PERM_USER_EDIT,
|
|
175
|
+ LuticatePermissions::PERM_USER_GET));
|
146
|
176
|
}
|
147
|
177
|
}
|