]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/subcontrollers/enunciado/templates/show.kid
Bugfix: typo en variable.
[software/sercom.git] / sercom / subcontrollers / enunciado / templates / show.kid
index e53f7188870eb3f420e42eaa2ba67a647e1e2eef..0f186341f2ea598f627e6376f47416836b68fbaa 100644 (file)
@@ -1,4 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?python from turbogears import identity ?>
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
     py:extends="'../../../templates/master.kid'">
 <head>
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
     py:extends="'../../../templates/master.kid'">
 <head>
@@ -24,7 +25,7 @@
 </table>
 
 <br/>
 </table>
 
 <br/>
-<a href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
+<a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
 <a href="${tg.url('/enunciado/list')}">Volver</a>
 
 </body>
 <a href="${tg.url('/enunciado/list')}">Volver</a>
 
 </body>