Browse Source

pa #663: ajout d'un role editeur formations

- aucune permission associee: a definir par le client
FGM 13 years ago
parent
commit
0dc4108070
4 changed files with 18 additions and 3 deletions
  1. 1 1
      fgcf.features.content.inc
  2. 1 2
      fgcf.features.inc
  3. 15 0
      fgcf.features.user_role.inc
  4. 1 0
      fgcf.info

+ 1 - 1
fgcf.features.content.inc

@@ -884,7 +884,7 @@ o|Oui',
       'max_filesize_per_file' => '1M',
       'max_filesize_per_node' => '',
       'max_resolution' => '640x480',
-      'min_resolution' => 0,
+      'min_resolution' => '0',
       'alt' => '',
       'custom_alt' => 0,
       'title' => '',

+ 1 - 2
fgcf.features.inc

@@ -5,7 +5,7 @@
  */
 function fgcf_imagecache_default_presets() {
   $items = array(
-    'fgcf_theme_logo_liste' => array (
+    'fgcf_theme_logo_liste' => array(
       'presetname' => 'fgcf_theme_logo_liste',
       'actions' => array(
         '0' => array(
@@ -51,7 +51,6 @@ function fgcf_imagecache_default_presets() {
       ),
     ),
   );
-
   return $items;
 }
 

+ 15 - 0
fgcf.features.user_role.inc

@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * Implementation of hook_user_default_roles().
+ */
+function fgcf_user_default_roles() {
+  $roles = array();
+
+  // Exported role: FGCF Editeur formations
+  $roles['FGCF Editeur formations'] = array(
+    'name' => 'FGCF Editeur formations',
+  );
+
+  return $roles;
+}

+ 1 - 0
fgcf.info

@@ -38,6 +38,7 @@ features[node][] = "fgcf_fiche"
 features[node][] = "fgcf_prestataire"
 features[node][] = "fgcf_thematique"
 features[user_permission][] = "access course catalog"
+features[user_role][] = "FGCF Editeur formations"
 name = "FG Catalogue Formation"
 package = "Features"
 project = "fgcf"