aboutsummaryrefslogtreecommitdiffstats
path: root/include/permissions.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-26 15:08:55 +0000
committerMario <mario@mariovavti.com>2020-01-26 15:08:55 +0000
commit1712eceaf95e5e57d8f5866cb1f6100a0acd28b6 (patch)
treecab368286e393f4d6cda5c528db14859f3344a34 /include/permissions.php
parent7d8c6cb9edb1eddb5b1a1868bf02f875330d5771 (diff)
downloadvolse-hubzilla-1712eceaf95e5e57d8f5866cb1f6100a0acd28b6.tar.gz
volse-hubzilla-1712eceaf95e5e57d8f5866cb1f6100a0acd28b6.tar.bz2
volse-hubzilla-1712eceaf95e5e57d8f5866cb1f6100a0acd28b6.zip
port Lib/Connect and Module/Follow from zap. Connect with new connections via zot6
Diffstat (limited to 'include/permissions.php')
-rw-r--r--include/permissions.php20
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;
+}