|
@@ -57,37 +57,39 @@ class LuticateBusiness
|
57
|
57
|
$route->post("$prefix/users/login", "${ns}LuticateUsersController", "login");
|
58
|
58
|
$route->post("$prefix/users/logout", "${ns}LuticateUsersController", "logout");
|
59
|
59
|
$route->get("$prefix/users/me", "${ns}LuticateUsersController", "getLightMe");
|
60
|
|
- $route->get("$prefix/users/$user_id", "${ns}LuticateUsersController", "getLightById", LuticatePermissions::USER_GET);
|
|
60
|
+ $route->get("$prefix/users/$user_id", "${ns}LuticateUsersController",
|
|
61
|
+ "getLightById", LuticatePermissions::USER_GET);
|
61
|
62
|
$route->get("$prefix/users", "${ns}LuticateUsersController", "getAllLight", LuticatePermissions::USER_GET);
|
62
|
|
- $route->post("$prefix/users/add", "${ns}LuticateUsersController", "add",
|
63
|
|
- array(LuticatePermissions::USER_ADD, LuticatePermissions::USER_GET));
|
64
|
|
- $route->post("$prefix/users/$user_id/del", "${ns}LuticateUsersController", "del",
|
65
|
|
- array(LuticatePermissions::USER_DEL, LuticatePermissions::USER_GET));
|
66
|
|
- $route->post("$prefix/users/$user_id/edit", "${ns}LuticateUsersController", "edit",
|
67
|
|
- array(LuticatePermissions::USER_EDIT, LuticatePermissions::USER_GET));
|
68
|
|
- $route->post("$prefix/users/me/edit", "${ns}LuticateUsersController", "editMe",
|
69
|
|
- LuticatePermissions::USER_EDIT_ME);
|
70
|
|
- $route->post("$prefix/users/$user_id/setPassword", "${ns}LuticateUsersController", "setPassword",
|
71
|
|
- array(LuticatePermissions::USER_SET_PASSWORD, LuticatePermissions::USER_GET));
|
|
63
|
+ $route->post("$prefix/users/add", "${ns}LuticateUsersController",
|
|
64
|
+ "add", array(LuticatePermissions::USER_ADD, LuticatePermissions::USER_GET));
|
|
65
|
+ $route->post("$prefix/users/$user_id/del", "${ns}LuticateUsersController",
|
|
66
|
+ "del", array(LuticatePermissions::USER_DEL, LuticatePermissions::USER_GET));
|
|
67
|
+ $route->post("$prefix/users/$user_id/edit", "${ns}LuticateUsersController",
|
|
68
|
+ "edit", array(LuticatePermissions::USER_EDIT, LuticatePermissions::USER_GET));
|
|
69
|
+ $route->post("$prefix/users/me/edit", "${ns}LuticateUsersController",
|
|
70
|
+ "editMe", LuticatePermissions::USER_EDIT_ME);
|
|
71
|
+ $route->post("$prefix/users/$user_id/setPassword", "${ns}LuticateUsersController",
|
|
72
|
+ "setPassword", array(LuticatePermissions::USER_SET_PASSWORD, LuticatePermissions::USER_GET));
|
72
|
73
|
$route->post("$prefix/users/me/setPassword", "${ns}LuticateUsersController", "setPasswordMe",
|
73
|
74
|
LuticatePermissions::USER_SET_PASSWORD_ME);
|
74
|
75
|
|
75
|
76
|
|
76
|
|
- $route->get("$prefix/groups/$group_id", "${ns}LuticateGroupsController", "getById", LuticatePermissions::GROUP_GET);
|
|
77
|
+ $route->get("$prefix/groups/$group_id", "${ns}LuticateGroupsController",
|
|
78
|
+ "getById", LuticatePermissions::GROUP_GET);
|
77
|
79
|
$route->get("$prefix/groups", "${ns}LuticateGroupsController", "getAll", LuticatePermissions::GROUP_GET);
|
78
|
|
- $route->post("$prefix/groups/add", "${ns}LuticateGroupsController", "add",
|
79
|
|
- array(LuticatePermissions::GROUP_ADD, LuticatePermissions::GROUP_GET));
|
80
|
|
- $route->post("$prefix/groups/$group_id/del", "${ns}LuticateGroupsController", "del",
|
81
|
|
- array(LuticatePermissions::GROUP_DEL, LuticatePermissions::GROUP_GET));
|
82
|
|
- $route->post("$prefix/groups/$group_id/edit", "${ns}LuticateGroupsController", "edit",
|
83
|
|
- array(LuticatePermissions::GROUP_EDIT, LuticatePermissions::GROUP_GET));
|
|
80
|
+ $route->post("$prefix/groups/add", "${ns}LuticateGroupsController",
|
|
81
|
+ "add", array(LuticatePermissions::GROUP_ADD, LuticatePermissions::GROUP_GET));
|
|
82
|
+ $route->post("$prefix/groups/$group_id/del", "${ns}LuticateGroupsController",
|
|
83
|
+ "del", array(LuticatePermissions::GROUP_DEL, LuticatePermissions::GROUP_GET));
|
|
84
|
+ $route->post("$prefix/groups/$group_id/edit", "${ns}LuticateGroupsController",
|
|
85
|
+ "edit", array(LuticatePermissions::GROUP_EDIT, LuticatePermissions::GROUP_GET));
|
84
|
86
|
|
85
|
|
- $route->get("$prefix/groups/$group_id/users/", "${ns}LuticateGroupsController", "getUsers",
|
86
|
|
- LuticatePermissions::GROUP_GET);
|
87
|
|
- $route->post("$prefix/groups/$group_id/users/$user_id/add", "${ns}LuticateGroupsController", "addUser",
|
88
|
|
- array(LuticatePermissions::GROUP_USER_ADD, LuticatePermissions::GROUP_GET));
|
89
|
|
- $route->post("$prefix/groups/$group_id/users/$user_id/del", "${ns}LuticateGroupsController", "delUser",
|
90
|
|
- array(LuticatePermissions::GROUP_USER_DEL, LuticatePermissions::GROUP_GET));
|
|
87
|
+ $route->get("$prefix/groups/$group_id/users/", "${ns}LuticateGroupsController",
|
|
88
|
+ "getUsers", LuticatePermissions::GROUP_GET);
|
|
89
|
+ $route->post("$prefix/groups/$group_id/users/$user_id/add", "${ns}LuticateGroupsController",
|
|
90
|
+ "addUser", array(LuticatePermissions::GROUP_USER_ADD, LuticatePermissions::GROUP_GET));
|
|
91
|
+ $route->post("$prefix/groups/$group_id/users/$user_id/del", "${ns}LuticateGroupsController",
|
|
92
|
+ "delUser", array(LuticatePermissions::GROUP_USER_DEL, LuticatePermissions::GROUP_GET));
|
91
|
93
|
|
92
|
94
|
|
93
|
95
|
$route->get("$prefix/permissions/effective/$user_id/$permission_name", "${ns}LuticatePermissionsController",
|
|
@@ -147,15 +149,26 @@ class LuticateBusiness
|
147
|
149
|
$route->get("$prefix/settings/effective/me", "${ns}LuticateSettingsController",
|
148
|
150
|
"getAllEffectiveSettingMe");
|
149
|
151
|
|
150
|
|
- $route->get("$prefix/settings/$setting_name", "${ns}LuticateSettingsController", "get",
|
151
|
|
- LuticatePermissions::SETTING_GET);
|
152
|
|
- $route->get("$prefix/settings", "${ns}LuticateSettingsController", "getAll",
|
153
|
|
- LuticatePermissions::SETTING_GET);
|
|
152
|
+ $route->get("$prefix/settings/$setting_name", "${ns}LuticateSettingsController",
|
|
153
|
+ "get", LuticatePermissions::SETTING_GET);
|
|
154
|
+ $route->get("$prefix/settings", "${ns}LuticateSettingsController",
|
|
155
|
+ "getAll", LuticatePermissions::SETTING_GET);
|
154
|
156
|
$route->post("$prefix/settings/add", "${ns}LuticateSettingsController",
|
155
|
157
|
"add", array(LuticatePermissions::SETTING_ADD, LuticatePermissions::SETTING_GET));
|
156
|
|
- $route->post("$prefix/settings/$setting_name/del", "${ns}LuticateSettingsController", "del",
|
157
|
|
- array(LuticatePermissions::SETTING_DEL, LuticatePermissions::SETTING_GET));
|
|
158
|
+ $route->post("$prefix/settings/$setting_name/del", "${ns}LuticateSettingsController",
|
|
159
|
+ "del", array(LuticatePermissions::SETTING_DEL, LuticatePermissions::SETTING_GET));
|
158
|
160
|
$route->post("$prefix/settings/$setting_name/edit", "${ns}LuticateSettingsController",
|
159
|
161
|
"edit", array(LuticatePermissions::SETTING_EDIT, LuticatePermissions::SETTING_GET));
|
|
162
|
+
|
|
163
|
+ $route->get("$prefix/settings/user/$user_id/$setting_name", "${ns}LuticateSettingsUsersController",
|
|
164
|
+ "get", LuticatePermissions::SETTING_USER_GET);
|
|
165
|
+ $route->get("$prefix/settings/user/$user_id", "${ns}LuticateSettingsUsersController",
|
|
166
|
+ "getAllByUser", LuticatePermissions::SETTING_USER_GET);
|
|
167
|
+ $route->post("$prefix/settings/user/$user_id/add/$setting_name", "${ns}LuticateSettingsUsersController",
|
|
168
|
+ "add", array(LuticatePermissions::SETTING_USER_ADD, LuticatePermissions::SETTING_USER_GET));
|
|
169
|
+ $route->post("$prefix/settings/user/$user_id/$setting_name/del", "${ns}LuticateSettingsUsersController",
|
|
170
|
+ "del", array(LuticatePermissions::SETTING_USER_DEL, LuticatePermissions::SETTING_USER_GET));
|
|
171
|
+ $route->post("$prefix/settings/user/$user_id/$setting_name/edit", "${ns}LuticateSettingsUsersController",
|
|
172
|
+ "edit", array(LuticatePermissions::SETTING_USER_EDIT, LuticatePermissions::SETTING_USER_GET));
|
160
|
173
|
}
|
161
|
174
|
}
|