|
@@ -11,4 +11,34 @@ class LuticatePermissionsController extends LuController {
|
11
|
11
|
{
|
12
|
12
|
return new LuticatePermissionsBusiness();
|
13
|
13
|
}
|
|
14
|
+
|
|
15
|
+ public function getEffectivePermission($user_id, $permission_name)
|
|
16
|
+ {
|
|
17
|
+ return LuticatePermissionsBusiness::getEffectivePermission($user_id, $permission_name);
|
|
18
|
+ }
|
|
19
|
+
|
|
20
|
+ public function getEffectivePermissionMe($user, $permission_name)
|
|
21
|
+ {
|
|
22
|
+ return LuticatePermissionsBusiness::getEffectivePermissionMe($user, $permission_name);
|
|
23
|
+ }
|
|
24
|
+
|
|
25
|
+ public function get($permission_name)
|
|
26
|
+ {
|
|
27
|
+ return LuticatePermissionsBusiness::get($permission_name);
|
|
28
|
+ }
|
|
29
|
+
|
|
30
|
+ public function add($permission_name, $permission_value)
|
|
31
|
+ {
|
|
32
|
+ return LuticatePermissionsBusiness::add($permission_name, $permission_value);
|
|
33
|
+ }
|
|
34
|
+
|
|
35
|
+ public function del($permission_name)
|
|
36
|
+ {
|
|
37
|
+ return LuticatePermissionsBusiness::del($permission_name);
|
|
38
|
+ }
|
|
39
|
+
|
|
40
|
+ public function edit($permission_name, $permission_value)
|
|
41
|
+ {
|
|
42
|
+ return LuticatePermissionsBusiness::edit($permission_name, $permission_value);
|
|
43
|
+ }
|
14
|
44
|
}
|