aboutsummaryrefslogtreecommitdiffstats
path: root/include/permissions.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-28 22:08:08 -0700
committerfriendica <info@friendica.com>2012-10-28 22:08:08 -0700
commite1388761998f231de0c321e6652f7db9ed567c09 (patch)
treed72a64c56e657f73c5568b7f57af9b0c238f8500 /include/permissions.php
parentd0d8971a69040c9dfd0d53a346135979b881c020 (diff)
downloadvolse-hubzilla-e1388761998f231de0c321e6652f7db9ed567c09.tar.gz
volse-hubzilla-e1388761998f231de0c321e6652f7db9ed567c09.tar.bz2
volse-hubzilla-e1388761998f231de0c321e6652f7db9ed567c09.zip
fix updating of bitwise 'unseen' to account for mysql operator precedence
Diffstat (limited to 'include/permissions.php')
-rw-r--r--include/permissions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/permissions.php b/include/permissions.php
index d48e98c41..e32704883 100644
--- a/include/permissions.php
+++ b/include/permissions.php
@@ -20,6 +20,14 @@
);
+/**
+ * get_all_perms($uid,$observer)
+ *
+ * @param $uid : The channel_id associated with the resource owner
+ * @param $observer: The xchan_hash representing the observer
+ *
+ * @returns: array of all permissions, key is permission name, value is integer 0 or 1
+ */
function get_all_perms($uid,$observer) {