From 401409357238183702c1628a02ccef6cf0394d72 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 17 Sep 2014 17:59:46 -0700 Subject: implement permission roles - the backend should be done except for maybe a couple of small tweaks. Now we just need to define the rest of the roles and create a chooser for them. Adam started on this some time back but I don't know where that has gone. --- mod/connedit.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'mod/connedit.php') diff --git a/mod/connedit.php b/mod/connedit.php index b2de42343..7ad719738 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -255,6 +255,28 @@ function connedit_content(&$a) { return login(); } + $my_perms = 0; + $role = get_pconfig(local_user(),'system','permissions_role'); + if($role) { + $x = get_role_perms($role); + if($x['perms_accept']) + $my_perms = $x['perms_accept']; + } + if($my_perms) { + $o .= "\n"; + } + if(argc() == 3) { $contact_id = intval(argv(1)); -- cgit v1.2.3