Scarab commit: svn commit: r10714 - branches/release/0.22/src/webapp/WEB-INF/templates/navigations/Administration.vm

Johannes Höchstädter <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: jhoech
Date: 2009-04-27 07:59:06-0700
New Revision: 10714

Modified:
   branches/release/0.22/src/webapp/WEB-INF/templates/navigations/Administration.vm

Log:
FIX - code enhancement: all role privileges are represented in variables in Administration.vm

Modified: branches/release/0.22/src/webapp/WEB-INF/templates/navigations/Administration.vm
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/0.22/src/webapp/WEB-INF/templates/navigations/Administration.vm?view=diff&pathrev=10714&r1=10713&r2=10714
==============================================================================
--- branches/release/0.22/src/webapp/WEB-INF/templates/navigations/Administration.vm	(original)
+++ branches/release/0.22/src/webapp/WEB-INF/templates/navigations/Administration.vm	2009-04-27 07:59:06-0700
@@ -10,6 +10,7 @@
 #set ($allowCP = $link.isAllowed("ChangePassword.vm")&& ($data.user.isUserAnonymous()==false)) 
 #set ($allowUSI = $link.isAllowed("admin,UpdateSearchIndex.vm"))
 #set ($allowCustomize = $data.user.isUserAnonymous()==false)
+#set ($allowXML = $link.isAllowed("admin,XMLExportIssues.vm"))
 
 #if ($allowMUS || $allowAU || $allowMR || $allowAR || $allowGATS || $allowGAS || $allowMAT || $allowMM || $allowA || $allowCP || $allowUSI)
 
@@ -34,7 +35,7 @@
     <div>$link.setPage("admin,Approval.vm").setPathInfo($scarabG.Constant.CURRENT_ADMIN_MENU, "2").setLabel("$l10n.Approve")</div>
    #end
 
-   #if ($allowMAT || $allowMM || $link.isAllowed("admin,XMLExportIssues.vm"))
+   #if ($allowMAT || $allowMM || $allowXML)
     #if ($adminMenu.equals("3"))
      <div><strong>$l10n.CurrentModule</strong>
        $renderer.render("navigations", "ModuleAdmin.vm")

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=1947199
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.