Skip to content

Commit

Permalink
Add 'creator' role
Browse files Browse the repository at this point in the history
  • Loading branch information
subiabre committed Nov 17, 2023
1 parent 76f5fef commit 706c057
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Resources/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ user: # This user is assigned automatically to all users regardless the user_rol
- remove-project # remove own project, this permission is implicit
level: 0 # Order of the role, roles with supperior level can do some actions over this

creator:
extends: user # inhertis permissions from role "user"
perms:
- highlight-project # can feature own projects in their creator profile
level: 10

vip:
extends: user # inherits permissions from role "user"
perms:
Expand Down
2 changes: 2 additions & 0 deletions translations/ca/roles.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
role-name-user: 'Usuari sense privilegis'
role-name-creator: 'Creador de continguts'
role-name-vip: 'Usuari VIP (padrí)'
role-name-translator: 'Traductor de continguts'
role-name-checker: 'Revisor de projectes'
Expand Down Expand Up @@ -54,3 +55,4 @@ role-perm-name-create-matcher: 'Pot crear matchers'
role-perm-name-edit-matcher: 'Pot editar matchers'
role-perm-name-remove-matcher: 'Pot esborrar els seus matchers'
role-perm-name-edit-any-matcher: 'Pot editar qualsevol matcher'
role-perm-name-highlight-project: 'Pot incloure projectes propis al seu perfil de creador'
2 changes: 2 additions & 0 deletions translations/en/roles.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
role-name-user: 'Non privileged user'
role-name-creator: 'Content creator'
role-name-vip: 'VIP user (godfather)'
role-name-translator: 'Content translator'
role-name-checker: 'Project reviewer'
Expand Down Expand Up @@ -55,6 +56,7 @@ role-perm-name-admin-module-workshops: 'Can access the workshop module'
role-perm-name-admin-module-promote: 'Can access the module to promote projects to the home page'
role-perm-name-admin-module-channels: "Can access the channel's administration modules"
role-perm-name-receive-test-communications: 'Can receive test communications'
role-perm-name-highlight-project: 'Can feature own projects in their creator profile'
role-perm-name-create-matcher: 'Create own matcher'
role-perm-name-edit-matcher: 'Edit own matcher'
role-perm-name-remove-matcher: 'Remove own matcher'
Expand Down
5 changes: 4 additions & 1 deletion translations/es/roles.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
role-name-user: 'Usuario sin privilegios'
role-name-creator: 'Creador de contenidos'
role-name-vip: 'Usuario VIP (padrino)'
role-name-translator: 'Traductor de contenidos'
role-name-checker: 'Revisor de proyectos'
Expand Down Expand Up @@ -64,4 +65,6 @@ role-perm-name-create-matcher: 'Puede crear matchers'
role-perm-name-edit-matcher: 'Puede editar matchers'
role-perm-name-remove-matcher: 'Puede borrar sus matchers'
role-perm-name-edit-any-matcher: 'Puede editar cualquier matcher'
role-perm-name-remove-any-matcher: 'Puede borrar cualquier matcher'
role-perm-name-remove-any-matcher: 'Puede borrar cualquier matcher'

role-perm-name-highlight-project: 'Puede destacar proyectos propios en su perfil de creador'

0 comments on commit 706c057

Please sign in to comment.