Passed
Push — master ( cbd1a4...c22ee8 )
by Anthony
03:09
created
core/admin/droitsacces/DroitAcces.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,25 +41,25 @@  discard block
 block discarded – undo
41 41
     
42 42
     
43 43
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
44
-		public function getLogged(){
44
+		public function getLogged() {
45 45
 			return $this->logged;
46 46
 		}
47
-		public function getSuperAdmin(){
47
+		public function getSuperAdmin() {
48 48
 			return $this->super_admin;
49 49
 		}
50
-		public function getIdListeDroitAcces(){
50
+		public function getIdListeDroitAcces() {
51 51
 			return $this->id_liste_droit_acces;
52 52
 		}
53
-		public function getModifSeo(){
53
+		public function getModifSeo() {
54 54
 			return $this->modif_seo;
55 55
 		}
56
-		public function getModifContenu(){
56
+		public function getModifContenu() {
57 57
 			return $this->modif_contenu;
58 58
 		}
59
-		public function getModifNavigation(){
59
+		public function getModifNavigation() {
60 60
 			return $this->modif_navigation;
61 61
 		}
62
-		public function getSupprimerPage(){
62
+		public function getSupprimerPage() {
63 63
 			return $this->supprimer_page;
64 64
 		}
65 65
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 			//page sans droit dans admin
142 142
 			$all_access = array("gestion-comptes/mon-compte", "index");
143 143
 
144
-			if (($this->super_admin == 1) || (in_array($this->getListeDroitPage($page), $this->getListeDroitAcces()))|| (in_array($page, $all_access))) {
144
+			if (($this->super_admin == 1) || (in_array($this->getListeDroitPage($page), $this->getListeDroitAcces())) || (in_array($page, $all_access))) {
145 145
 				return true;
146 146
 			}
147 147
 			else {
Please login to merge, or discard this patch.