]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/menu.py
Bugfix: El zip se subía roto en las entregas.
[software/sercom.git] / sercom / menu.py
index da714d168c7a10c2ac8ee6e73b01c421f5f94346..bc9fbeed44ff05d0ff44df4940937972259f6a13 100644 (file)
@@ -13,6 +13,7 @@ class Menu:
         self.items = ['dashboard'] + self.items
 
     def _check(self, c):
         self.items = ['dashboard'] + self.items
 
     def _check(self, c):
+        if hasattr(c, 'hide_to_admin') and 'admin' in identity.current.permissions: return False
         return c.require.eval_with_object(identity.current)
 
     def __repr__(self):
         return c.require.eval_with_object(identity.current)
 
     def __repr__(self):