aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-16 21:41:07 -0700
committerfriendica <info@friendica.com>2012-08-16 21:41:07 -0700
commita7c1c22a2a9a5088f0961556bf58e4177005043d (patch)
tree144dd415edd325341a88cbdd7f0dbb26c82bf7ee /boot.php
parent57cf80754d7ad2037ea144369111a624ec5ffcb3 (diff)
downloadvolse-hubzilla-a7c1c22a2a9a5088f0961556bf58e4177005043d.tar.gz
volse-hubzilla-a7c1c22a2a9a5088f0961556bf58e4177005043d.tar.bz2
volse-hubzilla-a7c1c22a2a9a5088f0961556bf58e4177005043d.zip
new contact edit mockup - verdict: too complicated, must simplify
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php38
1 files changed, 18 insertions, 20 deletions
diff --git a/boot.php b/boot.php
index 88b31efc8..b2b92d0ea 100644
--- a/boot.php
+++ b/boot.php
@@ -151,29 +151,27 @@ define ( 'NETWORK_GPLUS', 'goog'); // Google+
define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder
+
/**
- * These numbers are used in stored permissions
- * and existing allocations MUST NEVER BE CHANGED
- * OR RE-ASSIGNED! You may only add to them.
+ * Permissions
*/
-$netgroup_ids = array(
- NETWORK_DFRN => (-1),
- NETWORK_ZOT => (-2),
- NETWORK_OSTATUS => (-3),
- NETWORK_FEED => (-4),
- NETWORK_DIASPORA => (-5),
- NETWORK_MAIL => (-6),
- NETWORK_MAIL2 => (-7),
- NETWORK_FACEBOOK => (-8),
- NETWORK_LINKEDIN => (-9),
- NETWORK_XMPP => (-10),
- NETWORK_MYSPACE => (-11),
- NETWORK_GPLUS => (-12),
-
- NETWORK_PHANTOM => (-127),
-);
-
+define ( 'PERMS_VISIBLE', 0x0001); // Can be seen in my public address book
+define ( 'PERMS_TRANSMIT', 0x0002); // Can post to my stream
+define ( 'PERMS_RECEIVE', 0x0004); // Can receive my posts
+define ( 'PERMS_COMMENT', 0x0008); // Can comment on my posts
+define ( 'PERMS_POSTWALL', 0x0010); // Can post to my wall if I allow wall posts
+define ( 'PERMS_TAGWALL', 0x0020); // Can post to my wall via tags (e.g. community groups)
+define ( 'PERMS_MAIL', 0x0040); // Can send me email
+define ( 'PERMS_SEEABOOK', 0x0080); // Can see my address book if it's not public
+define ( 'PERMS_CHAT', 0x0100); // Can IM me (when available)
+define ( 'PERMS_SEEPERMS', 0x7000); // Can see these permissions
+
+define ( 'PERMS_FRIEND', PERMS_VISIBLE|PERMS_TRANSMIT|PERMS_RECEIVE|PERMS_COMMENT|PERMS_POSTWALL|PERMS_MAIL|
+ PERMS_SEEABOOK|PERMS_CHAT|PERMS_SEEPERMS ); // Can do anything but tag post
+
+define ( 'PERMS_COMMUNITY', PERMS_VISIBLE|PERMS_RECEIVE|PERMS_COMMENT|PERMS_POSTWALL|PERMS_TAGWALL|
+ PERMS_SEEABOOK|PERMS_SEEPERMS); // Public group profile
/**
* Maximum number of "people who like (or don't like) this" that we will list by name