diff --git a/intranet/ClassesIntranet/ModuleBase.py b/intranet/ClassesIntranet/ModuleBase.py index 24e1278f..d69f4cca 100644 --- a/intranet/ClassesIntranet/ModuleBase.py +++ b/intranet/ClassesIntranet/ModuleBase.py @@ -10,9 +10,13 @@ class ModuleBase: return "icon.png" _droits = [] + _club = False def droits(self): return self._droits def accessible(self): - return verifDroits(cherrypy.session['droits'], self.droits()) + if cherrypy.session['estClub'] == True: + if self._club == False: + return False + return verifDroits(cherrypy.session['droits'], self.droits())