From 1fae2f3466bb7c000d97f6b879ec13a6622593cf Mon Sep 17 00:00:00 2001 From: interdruper Date: Thu, 29 Jun 2017 17:52:48 +0200 Subject: [PATCH 1/2] Fixed #51. Added editor role for articles, groups and videos. --- sites/default/conf/user.role.administrator.yml | 2 +- sites/default/conf/user.role.anonymous.yml | 2 +- sites/default/conf/user.role.authenticated.yml | 2 +- sites/default/conf/user.role.socio.yml | 3 ++- sites/default/conf/user.role.socio_2013.yml | 2 +- sites/default/conf/user.role.socio_2014.yml | 2 +- sites/default/conf/user.role.socio_2015.yml | 2 +- sites/default/conf/user.role.socio_2016.yml | 2 +- sites/default/conf/user.role.socio_2017.yml | 2 +- sites/default/conf/user.role.socio_2018.yml | 2 +- sites/default/conf/user.role.socio_2019.yml | 2 +- sites/default/conf/user.role.socio_2020.yml | 2 +- 12 files changed, 13 insertions(+), 12 deletions(-) diff --git a/sites/default/conf/user.role.administrator.yml b/sites/default/conf/user.role.administrator.yml index 70c9954a3..5caabea99 100644 --- a/sites/default/conf/user.role.administrator.yml +++ b/sites/default/conf/user.role.administrator.yml @@ -6,6 +6,6 @@ _core: default_config_hash: Om6FEO7vZZMkPIbVvfxtdkWerQ2PvQM4sWUd6Q3ZnfI id: administrator label: Administrator -weight: 2 +weight: -8 is_admin: true permissions: { } diff --git a/sites/default/conf/user.role.anonymous.yml b/sites/default/conf/user.role.anonymous.yml index af30ba580..2adcd7ca9 100644 --- a/sites/default/conf/user.role.anonymous.yml +++ b/sites/default/conf/user.role.anonymous.yml @@ -6,7 +6,7 @@ _core: default_config_hash: j5zLMOdJBqC0bMvSdth5UebkprJB8g_2FXHqhfpJzow id: anonymous label: 'usuario anĂ³nimo' -weight: 0 +weight: -10 is_admin: false permissions: - 'access checkout' diff --git a/sites/default/conf/user.role.authenticated.yml b/sites/default/conf/user.role.authenticated.yml index 69ad0870e..400d560c4 100644 --- a/sites/default/conf/user.role.authenticated.yml +++ b/sites/default/conf/user.role.authenticated.yml @@ -6,7 +6,7 @@ _core: default_config_hash: dJ0L2DNSj5q6XVZAGsuVDpJTh5UeYkIPwKrUOOpr8YI id: authenticated label: 'usuario autenticado' -weight: 1 +weight: -9 is_admin: false permissions: - 'access checkout' diff --git a/sites/default/conf/user.role.socio.yml b/sites/default/conf/user.role.socio.yml index e58eb76ee..8643440f7 100644 --- a/sites/default/conf/user.role.socio.yml +++ b/sites/default/conf/user.role.socio.yml @@ -4,9 +4,10 @@ status: true dependencies: { } id: socio label: Socio -weight: 7 +weight: -6 is_admin: null permissions: + - 'change own username' - 'create field_pagina_web' - 'edit own field_pagina_web' - 'edit own socio profile' diff --git a/sites/default/conf/user.role.socio_2013.yml b/sites/default/conf/user.role.socio_2013.yml index 9b79fbccf..34556d5b9 100644 --- a/sites/default/conf/user.role.socio_2013.yml +++ b/sites/default/conf/user.role.socio_2013.yml @@ -4,7 +4,7 @@ status: true dependencies: { } id: socio_2013 label: 'Socio 2013' -weight: 8 +weight: -5 is_admin: null permissions: - 'change own username' diff --git a/sites/default/conf/user.role.socio_2014.yml b/sites/default/conf/user.role.socio_2014.yml index 38267135f..a7bea5cb9 100644 --- a/sites/default/conf/user.role.socio_2014.yml +++ b/sites/default/conf/user.role.socio_2014.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2014 label: 'Socio 2014' -weight: 9 +weight: -4 is_admin: null permissions: { } diff --git a/sites/default/conf/user.role.socio_2015.yml b/sites/default/conf/user.role.socio_2015.yml index 2bda75e80..e8c24c496 100644 --- a/sites/default/conf/user.role.socio_2015.yml +++ b/sites/default/conf/user.role.socio_2015.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2015 label: 'Socio 2015' -weight: 10 +weight: -3 is_admin: null permissions: { } diff --git a/sites/default/conf/user.role.socio_2016.yml b/sites/default/conf/user.role.socio_2016.yml index 39e3192cd..f1c4f02f9 100644 --- a/sites/default/conf/user.role.socio_2016.yml +++ b/sites/default/conf/user.role.socio_2016.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2016 label: 'Socio 2016' -weight: 12 +weight: -2 is_admin: null permissions: { } diff --git a/sites/default/conf/user.role.socio_2017.yml b/sites/default/conf/user.role.socio_2017.yml index 2ed98d2a5..590081c6c 100644 --- a/sites/default/conf/user.role.socio_2017.yml +++ b/sites/default/conf/user.role.socio_2017.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2017 label: 'Socio 2017' -weight: 13 +weight: -1 is_admin: null permissions: { } diff --git a/sites/default/conf/user.role.socio_2018.yml b/sites/default/conf/user.role.socio_2018.yml index 18c7c9297..b6bbc5ba6 100644 --- a/sites/default/conf/user.role.socio_2018.yml +++ b/sites/default/conf/user.role.socio_2018.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2018 label: 'Socio 2018' -weight: 14 +weight: 0 is_admin: null permissions: { } diff --git a/sites/default/conf/user.role.socio_2019.yml b/sites/default/conf/user.role.socio_2019.yml index 06d3c52b6..f2ebe655a 100644 --- a/sites/default/conf/user.role.socio_2019.yml +++ b/sites/default/conf/user.role.socio_2019.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2019 label: 'Socio 2019' -weight: 15 +weight: 1 is_admin: null permissions: { } diff --git a/sites/default/conf/user.role.socio_2020.yml b/sites/default/conf/user.role.socio_2020.yml index 2e73cc120..bcd58a036 100644 --- a/sites/default/conf/user.role.socio_2020.yml +++ b/sites/default/conf/user.role.socio_2020.yml @@ -4,6 +4,6 @@ status: true dependencies: { } id: socio_2020 label: 'Socio 2020' -weight: 16 +weight: 2 is_admin: null permissions: { } From 098e34ad1d99dce9978507946fde3c577d28eb48 Mon Sep 17 00:00:00 2001 From: interdruper Date: Thu, 29 Jun 2017 18:16:14 +0200 Subject: [PATCH 2/2] Fixed #51. Let authenticated users edit his/her own content, Used for local groups and company representatives. --- sites/default/conf/user.role.authenticated.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sites/default/conf/user.role.authenticated.yml b/sites/default/conf/user.role.authenticated.yml index 400d560c4..11662c41c 100644 --- a/sites/default/conf/user.role.authenticated.yml +++ b/sites/default/conf/user.role.authenticated.yml @@ -13,6 +13,9 @@ permissions: - 'access comments' - 'access content' - 'access user profiles' + - 'edit own comments' + - 'edit own groups content' + - 'edit own partner content' - 'flag video_visualizado' - 'post comments' - 'skip comment approval'