aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access/Permissions.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-27 04:44:10 -0700
committerredmatrix <git@macgirvin.com>2016-06-27 04:44:10 -0700
commit17e161006a9ddbfbea3e0b6d5f7776ad7b8101e2 (patch)
tree086c8e49e35f86373f11c00557183ea8e0db51f1 /Zotlabs/Access/Permissions.php
parent85d2ad4aea106417dc3d8ce2429d13dd858c5201 (diff)
downloadvolse-hubzilla-17e161006a9ddbfbea3e0b6d5f7776ad7b8101e2.tar.gz
volse-hubzilla-17e161006a9ddbfbea3e0b6d5f7776ad7b8101e2.tar.bz2
volse-hubzilla-17e161006a9ddbfbea3e0b6d5f7776ad7b8101e2.zip
added permissionroles
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r--Zotlabs/Access/Permissions.php32
1 files changed, 2 insertions, 30 deletions
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php
index eac3cb4b6..4c3c634fd 100644
--- a/Zotlabs/Access/Permissions.php
+++ b/Zotlabs/Access/Permissions.php
@@ -7,7 +7,6 @@ use Zotlabs\Lib as Zlib;
class Permissions {
-
static public function Perms($filter) {
$perms = [
@@ -43,39 +42,12 @@ class Permissions {
return Zlib\PConfig::Get($channel_id,'perms',$permission);
}
-
static public function Set($channel_id,$xchan_hash,$permission,$value) {
- $channel = channelx_by_n($channel_id);
- if($channel) {
- return Zlib\AbConfig::Set($channel['channel_hash'],$xchan_hash,'perms',$permission,$value);
- }
- return false;
+ return Zlib\AbConfig::Set($channel_id,$xchan_hash,'perms',$permission,$value);
}
static public function Get($channel_id,$xchan_hash,$permission) {
- $channel = channelx_by_n($channel_id);
- if($channel) {
- return Zlib\AbConfig::Get($channel['channel_hash'],$xchan_hash,'perms',$permission);
- }
- return false;
- }
-
- static public function SetHash($channel_hash,$xchan_hash,$permission,$value) {
- return Zlib\AbConfig::Set($channel_hash,$xchan_hash,'perms',$permission,$value);
+ return Zlib\AbConfig::Get($channel_id,$xchan_hash,'perms',$permission);
}
-
- static public function GetHash($channel_hash,$xchan_hash,$permission) {
- return Zlib\AbConfig::Get($channel_hash,$xchan_hash,'perms',$permission);
- }
-
-
-
-
-
-
-
-
-
-
} \ No newline at end of file