Skip to content
This repository was archived by the owner on Feb 2, 2018. It is now read-only.

Commit a157a82

Browse files
committed
refactoring DroitAcces
1 parent 2f30ef4 commit a157a82

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/admin/droitsacces/DroitAcces.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,18 @@ private function getListeDroitAcces() {
8989

9090
/**
9191
* @param $id_page
92+
* function that get if user can edit content SEO nav or contenu of the current page
9293
*/
9394
public function getListeDroitModificationContenu($id_page) {
9495
$dbc = App::getDb();
95-
96-
//on check si il a le droit de modifier ou supprimer cette page
96+
9797
$query = $dbc->select()->from("droit_acces_page")
9898
->from("liste_droit_acces")
9999
->where("droit_acces_page.ID_page", "=", $id_page, "AND")
100100
->where("liste_droit_acces.ID_liste_droit_acces", "=", $this->id_liste_droit_acces, "AND")
101101
->where("droit_acces_page.ID_liste_droit_acces", "=", "liste_droit_acces.ID_liste_droit_acces", "", true)
102102
->get();
103-
104-
//si on a un resultat
103+
105104
if ((is_array($query)) && (count($query) > 0)) {
106105
foreach ($query as $obj) {
107106
App::setValues(["droit_acces_page" => [

0 commit comments

Comments
 (0)