aut webmestre
This commit is contained in:
parent
de219d5432
commit
00468744ee
1 changed files with 4 additions and 1 deletions
|
@ -21,11 +21,14 @@ function gamuconfig_autoriser() {
|
|||
}
|
||||
|
||||
function autoriser_configurer($faire, $type, $id, $qui, $opt) {
|
||||
if (autoriser('webmestre')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$prefixes = lire_config('gamuconfig/prefixes');
|
||||
$Tprefixes = explode(',',$prefixes);
|
||||
$Tprefixes = array_map('trim',$Tprefixes);
|
||||
$Tid_auteur = lire_config('gamuconfig/id_auteur_aut');
|
||||
|
||||
if (
|
||||
in_array($type, $Tprefixes)
|
||||
and intval($qui['id_auteur']) > 0
|
||||
|
|
Loading…
Add table
Reference in a new issue