aboutsummaryrefslogtreecommitdiffstats
path: root/include/permissions.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-16 13:57:55 -0800
committerfriendica <info@friendica.com>2012-11-16 13:57:55 -0800
commit9a726f030844221f1eea9babcce915784b6ca1de (patch)
tree6483e758bd19dae3f9173b4397eff0fe498eada6 /include/permissions.php
parent5d4c9f5617ec8a99132a59d080f66989eba918f9 (diff)
downloadvolse-hubzilla-9a726f030844221f1eea9babcce915784b6ca1de.tar.gz
volse-hubzilla-9a726f030844221f1eea9babcce915784b6ca1de.tar.bz2
volse-hubzilla-9a726f030844221f1eea9babcce915784b6ca1de.zip
finish basic item encoding, add plugin compatibility tag, notes on improving $global_perms for edge cases
Diffstat (limited to 'include/permissions.php')
-rw-r--r--include/permissions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/permissions.php b/include/permissions.php
index 0502d7e2e..f6d150b58 100644
--- a/include/permissions.php
+++ b/include/permissions.php
@@ -2,6 +2,12 @@
function get_perms() {
+
+// thinking about making element[2] a bitmask instead of boolean so that we can provide a list of applicable selections
+// for any given permission. Currently we use the boolean to disallow write access to "everybody", but we also want to be
+// able to handle troublesome settings such as allowing channel_w_stream to anybody in the network. You can allow it, but
+// there's no way to implement sending it.
+
$global_perms = array(
// Read only permissions
'view_stream' => array('channel_r_stream', intval(PERMS_R_STREAM), true, t('Can view my "public" stream and posts'), ''),