mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
adding descriptions for roles
This commit is contained in:
parent
98a994e368
commit
9b803008bc
@ -1,5 +1,6 @@
|
||||
admin-lv3:
|
||||
display_name: Administrators Level 3
|
||||
description: Super administrators of the system
|
||||
backends_groups:
|
||||
ldap:
|
||||
- cn=dns admins,ou=group,dc=example,dc=com
|
||||
@ -13,6 +14,7 @@ admin-lv3:
|
||||
|
||||
admin-lv2:
|
||||
display_name: Administrators Level 2
|
||||
description: Basic administrators of the system
|
||||
LC_admins: True
|
||||
backends_groups:
|
||||
ldap:
|
||||
@ -23,6 +25,7 @@ admin-lv2:
|
||||
|
||||
developpers:
|
||||
display_name: Developpers
|
||||
description: Developpers of the system
|
||||
backends_groups:
|
||||
ldap:
|
||||
- cn=developpers,ou=group,dc=example,dc=com
|
||||
@ -32,6 +35,7 @@ developpers:
|
||||
|
||||
users:
|
||||
display_name: Simple Users
|
||||
description: Basic users of the system
|
||||
backends_groups:
|
||||
ldap:
|
||||
- cn=users,ou=group,dc=example,dc=com
|
||||
|
@ -115,6 +115,9 @@ class Roles:
|
||||
if not 'display_name' in role:
|
||||
raise MissingKey('display_name', role, self.role_file)
|
||||
|
||||
if not 'description' in role:
|
||||
raise MissingKey('description', role, self.role_file)
|
||||
|
||||
# Backend is mandatory
|
||||
if not 'backends_groups' in role:
|
||||
raise MissingKey('backends_groups', role, self.role_file)
|
||||
|
@ -4,6 +4,9 @@
|
||||
<th>
|
||||
Role
|
||||
</th>
|
||||
<th class="sorter-false">
|
||||
Description
|
||||
</th>
|
||||
<th class="sorter-false">
|
||||
Parent roles
|
||||
</th>
|
||||
@ -18,6 +21,9 @@
|
||||
<td>
|
||||
${roles[role]['display_name']}
|
||||
</td>
|
||||
<td>
|
||||
${roles[role]['description']}
|
||||
</td>
|
||||
<td>
|
||||
<%
|
||||
sep = ', '
|
||||
|
Loading…
Reference in New Issue
Block a user