aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-07 19:14:14 +0000
committerMario <mario@mariovavti.com>2022-01-07 19:14:14 +0000
commit5e811819e2738bd4de2869c9b99601219631ff0d (patch)
tree037e3e96c7792c021aa4c551c3a20678855885e3
parentf1c0034a18482ff85a1979fce94f3abd8622af0b (diff)
downloadvolse-hubzilla-5e811819e2738bd4de2869c9b99601219631ff0d.tar.gz
volse-hubzilla-5e811819e2738bd4de2869c9b99601219631ff0d.tar.bz2
volse-hubzilla-5e811819e2738bd4de2869c9b99601219631ff0d.zip
add link to create new contact roles
-rw-r--r--Zotlabs/Lib/Apps.php8
-rw-r--r--Zotlabs/Widget/Permcats.php6
-rw-r--r--app/permcats.apd8
3 files changed, 13 insertions, 9 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index c4ddcff1b..6ce052b06 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -67,17 +67,15 @@ class Apps {
static public function get_base_apps() {
$x = get_config('system','base_apps',[
'Connections',
+ 'Contact Roles',
'Network',
- 'Settings',
'Files',
'Channel Home',
- 'View Profile',
'Photos',
'Calendar',
'Directory',
'Search',
'Help',
- 'Profile Photo',
'HQ',
'Post'
]);
@@ -377,10 +375,10 @@ class Apps {
'OAuth Apps Manager' => t('OAuth Apps Manager'),
'OAuth2 Apps Manager' => t('OAuth2 Apps Manager'),
'PDL Editor' => t('PDL Editor'),
- 'Permission Categories' => t('Permission Categories'),
+ 'Contact Roles' => t('Contact Roles'),
'Public Stream' => t('Public Stream'),
'My Chatrooms' => t('My Chatrooms'),
- 'Channel Export' => t('Channel Export'),
+ 'Channel Export' => t('Channel Export')
);
if(array_key_exists('name',$arr)) {
diff --git a/Zotlabs/Widget/Permcats.php b/Zotlabs/Widget/Permcats.php
index 97ae6cba2..a908f6220 100644
--- a/Zotlabs/Widget/Permcats.php
+++ b/Zotlabs/Widget/Permcats.php
@@ -31,6 +31,12 @@ class Permcats {
if($active_role) {
+ $roles[] = [
+ 'name' => '<i class="fa fa-plus"></i>&nbsp;' . t('Add new role'),
+ 'url' => z_root() . '/permcats',
+ 'active' => ''
+ ];
+
/* get role members based on permissions
$test = $pcatlist[$active]['perms'];
diff --git a/app/permcats.apd b/app/permcats.apd
index dd7b36b92..d71eedb4f 100644
--- a/app/permcats.apd
+++ b/app/permcats.apd
@@ -1,7 +1,7 @@
-version: 3
+version: 5
url: $baseurl/permcats
requires: local_channel
-name: Permission Categories
-photo: icon:unlock-alt
+name: Contact Roles
+photo: icon:user-o
categories: Access Control
-desc: Create and manage custom connection permission limits.
+desc: Create and manage custom contact roles.