Skip to content

Commit

Permalink
FIX CVE Need permission to be able to develop modules
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 31, 2020
1 parent d60ce8a commit 1c24bcc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions htdocs/core/modules/modModuleBuilder.class.php
Expand Up @@ -45,6 +45,7 @@ public function __construct($db)
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
// It is used to group modules in module setup page
$this->family = "technic";
$this->module_position = '90';
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = preg_replace('/^mod/i', '', get_class($this));
$this->description = "A RAD (Rapid Application Development) tool to help developers to build their own module.";
Expand Down Expand Up @@ -82,6 +83,21 @@ public function __construct($db)
//------
$this->boxes = array();

// Permissions
//------------
$this->rights = array(); // Permission array used by this module
$this->rights_class = 'modulebuilder';

$r=0;

$r++;
$this->rights[$r][0] = 3301;
$this->rights[$r][1] = 'Generate new modules';
$this->rights[$r][2] = 'a';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'run';


// Main menu entries
//------------------
$this->menu = array();
Expand Down
3 changes: 3 additions & 0 deletions htdocs/modulebuilder/index.php
Expand Up @@ -90,6 +90,9 @@
$newmask = '0664';
}

$result = restrictedArea($user, 'modulebuilder', null);



/*
* Actions
Expand Down

0 comments on commit 1c24bcc

Please sign in to comment.