diff options
author | Max Kostikov <max@kostikov.co> | 2020-03-31 19:54:20 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-03-31 19:54:20 +0200 |
commit | 5a2c62466e773ce043a1b39bd2f1e7003a53d9f2 (patch) | |
tree | 363847c74a9068f3c8cf5110a5ac377c5d40fba1 /include/permissions.php | |
parent | c2b691fd0153f0b468f9014b4ca1f0f2b339c617 (diff) | |
parent | b739f91caa1522522a4ce093d7c63f0f4c777085 (diff) | |
download | volse-hubzilla-5a2c62466e773ce043a1b39bd2f1e7003a53d9f2.tar.gz volse-hubzilla-5a2c62466e773ce043a1b39bd2f1e7003a53d9f2.tar.bz2 volse-hubzilla-5a2c62466e773ce043a1b39bd2f1e7003a53d9f2.zip |
Merge branch 'dev' into 'dev'
Sync dev
See merge request kostikov/core!2
Diffstat (limited to 'include/permissions.php')
-rw-r--r-- | include/permissions.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/permissions.php b/include/permissions.php index 501b2cc77..ca8ff6e93 100644 --- a/include/permissions.php +++ b/include/permissions.php @@ -554,4 +554,24 @@ function site_default_perms() { return $ret; } +function their_perms_contains($channel_id,$xchan_hash,$perm) { + $x = get_abconfig($channel_id,$xchan_hash,'system','their_perms'); + if($x) { + $y = explode(',',$x); + if(in_array($perm,$y)) { + return true; + } + } + return false; +} +function my_perms_contains($channel_id,$xchan_hash,$perm) { + $x = get_abconfig($channel_id,$xchan_hash,'system','my_perms'); + if($x) { + $y = explode(',',$x); + if(in_array($perm,$y)) { + return true; + } + } + return false; +} |