]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/menu.py
Agregar tutores al listado de grupos.
[software/sercom.git] / sercom / menu.py
index bc9fbeed44ff05d0ff44df4940937972259f6a13..1d90c8929ee649adede1e9b01fc55a69854f6895 100644 (file)
@@ -14,17 +14,18 @@ class Menu:
 
     def _check(self, c):
         if hasattr(c, 'hide_to_admin') and 'admin' in identity.current.permissions: return False
+        if hasattr(c, 'hide_to_entregar') and 'admin' not in identity.current.permissions: return False
         return c.require.eval_with_object(identity.current)
 
     def __repr__(self):
         option = u"""<option value="%s">%s</option>" """
         template = """
         <div id="navbar">
-                       Ir a :
-                       <select OnChange="window.location=this.options[this.selectedIndex].value;">
-                               %s
-                       </select>
-               </div>
+                Ir a :
+                <select OnChange="window.location=this.options[this.selectedIndex].value;">
+                    %s
+                </select>
+            </div>
         """
         s = option % ('', '-----')
         for i in self.items: