aboutsummaryrefslogtreecommitdiffstats
path: root/include/permissions.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-12 20:59:18 -0800
committerfriendica <info@friendica.com>2012-11-12 20:59:18 -0800
commit5bf3ddfcf66ece4b50d5fccfd90c49005ce768ce (patch)
tree79bfeb6df83e881816aeb8bc7271dae4f7e14582 /include/permissions.php
parentb4c603cdace281f79e1738d2e006851b00af511e (diff)
downloadvolse-hubzilla-5bf3ddfcf66ece4b50d5fccfd90c49005ce768ce.tar.gz
volse-hubzilla-5bf3ddfcf66ece4b50d5fccfd90c49005ce768ce.tar.bz2
volse-hubzilla-5bf3ddfcf66ece4b50d5fccfd90c49005ce768ce.zip
got zot
Diffstat (limited to 'include/permissions.php')
-rw-r--r--include/permissions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/permissions.php b/include/permissions.php
index ca44ac4ad..0502d7e2e 100644
--- a/include/permissions.php
+++ b/include/permissions.php
@@ -135,7 +135,7 @@ function get_all_perms($uid,$observer,$internal_use = true) {
// Check if this is a write permission and they are being ignored
// This flag is only visible internally.
- if(($internal_use) && (! $global_perms[$permission][2]) && ($x[0]['abook_flags'] & ABOOK_FLAG_IGNORED)) {
+ if(($internal_use) && (! $global_perms[$perm_name][2]) && ($x[0]['abook_flags'] & ABOOK_FLAG_IGNORED)) {
$ret[$perm_name] = false;
continue;
}
@@ -149,7 +149,7 @@ function get_all_perms($uid,$observer,$internal_use = true) {
// Permission granted to certain channels. Let's see if the observer is one of them
if(($r) && ($r[0][$channel_perm] & PERMS_SPECIFIC)) {
- if(($x) && ($x[0]['abook_my_perms'] & $global_perms[$permission][1])) {
+ if(($x) && ($x[0]['abook_my_perms'] & $global_perms[$perm_name][1])) {
$ret[$perm_name] = true;
continue;
}