aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-27 16:19:30 -0700
committerfriendica <info@friendica.com>2014-10-27 16:19:30 -0700
commit583b445bc02c988e808742b16196e0d80391b3cc (patch)
tree1694a8253b08d24bab39df15d781166054c501bc /mod
parentbc3e7c4cad9f3c71b80332ff6ba5f89b74a21810 (diff)
downloadvolse-hubzilla-583b445bc02c988e808742b16196e0d80391b3cc.tar.gz
volse-hubzilla-583b445bc02c988e808742b16196e0d80391b3cc.tar.bz2
volse-hubzilla-583b445bc02c988e808742b16196e0d80391b3cc.zip
add "repository" permissions role and make sure we have a sane "accept" default for the custom role.
Diffstat (limited to 'mod')
-rw-r--r--mod/connedit.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/connedit.php b/mod/connedit.php
index 7ad719738..b10d9f3b8 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -261,6 +261,12 @@ function connedit_content(&$a) {
$x = get_role_perms($role);
if($x['perms_accept'])
$my_perms = $x['perms_accept'];
+ else {
+ // fixme - we need to be able to define these somewhere for the custom role
+ $my_perms = PERMS_R_STREAM|PERMS_R_PROFILE|PERMS_R_PHOTOS|PERMS_R_ABOOK
+ |PERMS_W_STREAM|PERMS_W_WALL|PERMS_W_COMMENT|PERMS_W_MAIL|PERMS_W_CHAT
+ |PERMS_R_STORAGE|PERMS_R_PAGES|PERMS_W_LIKE;
+ }
}
if($my_perms) {
$o .= "<script>function connectDefaultShare() {