Maintenant que le plugin ajoute un champ boss dans spip_auteurs et une
autorisation boss, on ajoute ce test dans notre fonction. On le place dans notre if $secret, pour pouvoir le désactiver via notre 4e arg
This commit is contained in:
parent
bbe8775c22
commit
0ea8ab59f6
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ function tester_autorisation($faire, $type, $qui, $secret = true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($secret) {
|
if ($secret) {
|
||||||
|
if ($qui['boss'] === "oui") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (pipeline('super_autorisation',$qui)) {
|
if (pipeline('super_autorisation',$qui)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue