[vhffs-dev] [1742] Do not show admin part unless user is admin.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1742
Author:   beuss
Date:     2011-05-15 00:10:22 +0200 (Sun, 15 May 2011)
Log Message:
-----------
Do not show admin part unless user is admin.

Modified Paths:
--------------
    trunk/vhffs-panel/templates/svn/prefs.tt

Modified: trunk/vhffs-panel/templates/svn/prefs.tt
===================================================================
--- trunk/vhffs-panel/templates/svn/prefs.tt	2011-05-14 22:10:08 UTC (rev 1741)
+++ trunk/vhffs-panel/templates/svn/prefs.tt	2011-05-14 22:10:22 UTC (rev 1742)
@@ -28,5 +28,7 @@
     param_name = 'name'
     param_value = repository.get_reponame %]
 
-[% INCLUDE 'admin/object/edit.tt' 
-    object = repository %]
+[% IF current_user.is_admin %]
+    [% INCLUDE 'admin/object/edit.tt' 
+        object = repository %]
+[% END %]


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/