From 00ab0aa17d728136dc3e8d2c2b9056ea075a04ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= Date: Thu, 1 Dec 2022 09:00:29 +0100 Subject: closes #1839 --- .../_common/_special_permission_table.php | 123 +++++++++++++++++++++ app/views/resources/room_group/permissions.php | 2 +- 2 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 app/views/resources/_common/_special_permission_table.php diff --git a/app/views/resources/_common/_special_permission_table.php b/app/views/resources/_common/_special_permission_table.php new file mode 100644 index 0000000..e401b4f --- /dev/null +++ b/app/views/resources/_common/_special_permission_table.php @@ -0,0 +1,123 @@ + The Icon object for the action. + * 'title' => The descriptive title for the action. + * 'link_classes' => Classes which shall be added to the link element + * of the action. + * 'url' => An optional URL that shall be attached to the action's + * link element via the href attribute. + * 'js_action' => An optional JavaScript action that shall be attached + * to the link element using the onclick attribute. + * ] + */ + +?> +> + + + + + + + + + + + + + + + + + + + + + + + + + + + perms) { + case 'autor': + { + $permission_sort_key = 20; + break; + } + case 'tutor': + { + $permission_sort_key = 30; + break; + } + case 'admin': + { + $permission_sort_key = 40; + break; + } + } + ?> + + + + + + + + + + + + > + + + +
+ user instanceof User): ?> + user->getFullName('full_rev_username')) ?> + (user->perms) ?>) + + + + + + perms) ?> + + id]) ?> +
+ + getFullName() + )) ?> + + + +
diff --git a/app/views/resources/room_group/permissions.php b/app/views/resources/room_group/permissions.php index 642f02f..aee23c3 100644 --- a/app/views/resources/room_group/permissions.php +++ b/app/views/resources/room_group/permissions.php @@ -42,7 +42,7 @@ ) ?> render_partial( - 'resources/_common/_permission_table.php', + 'resources/_common/_special_permission_table.php', [ 'permissions' => $partial_permissions, 'custom_columns' => [ -- cgit v1.0