aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
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 /Zotlabs
parentf1c0034a18482ff85a1979fce94f3abd8622af0b (diff)
downloadvolse-hubzilla-5e811819e2738bd4de2869c9b99601219631ff0d.tar.gz
volse-hubzilla-5e811819e2738bd4de2869c9b99601219631ff0d.tar.bz2
volse-hubzilla-5e811819e2738bd4de2869c9b99601219631ff0d.zip
add link to create new contact roles
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Apps.php8
-rw-r--r--Zotlabs/Widget/Permcats.php6
2 files changed, 9 insertions, 5 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'];