|
@@ -104,6 +104,7 @@ class LuticateBusiness
|
104
|
104
|
$name = "[A-Z0-9_]+";
|
105
|
105
|
$bool = "true|false";
|
106
|
106
|
|
|
107
|
+ $id = "{id:$int}";
|
107
|
108
|
$group_id = "{group_id:$int}";
|
108
|
109
|
$user_id = "{user_id:$int}";
|
109
|
110
|
$permission_name = "{permission_name:$name}";
|
|
@@ -125,6 +126,8 @@ class LuticateBusiness
|
125
|
126
|
LuticatePermissions::USER_SET_PASSWORD_ME);
|
126
|
127
|
|
127
|
128
|
|
|
129
|
+ $route->post("$prefix/groups/$id", "${ns}LuticateGroupsBusiness", "getById", LuticatePermissions::GROUP_GET);
|
|
130
|
+ $route->post("$prefix/groups", "${ns}LuticateGroupsBusiness", "getAll", LuticatePermissions::GROUP_GET);
|
128
|
131
|
$route->post("$prefix/groups/add", "${ns}LuticateGroupsBusiness", "add",
|
129
|
132
|
array(LuticatePermissions::GROUP_ADD, LuticatePermissions::GROUP_GET));
|
130
|
133
|
$route->post("$prefix/groups/$group_id/del", "${ns}LuticateGroupsBusiness", "del",
|