[freeside-commits] freeside/rt/html/Elements FreesideSearch, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Sat Mar 15 21:00:33 PDT 2008
Update of /home/cvs/cvsroot/freeside/rt/html/Elements
In directory wavetail.420.am:/tmp/cvs-serv11198/rt/html/Elements
Modified Files:
FreesideSearch
Log Message:
hide customer search if user does not have "List customers" ACL, closes: RT#3105
Index: FreesideSearch
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Elements/FreesideSearch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- FreesideSearch 29 Dec 2006 08:51:33 -0000 1.3
+++ FreesideSearch 16 Mar 2008 04:00:30 -0000 1.4
@@ -1,3 +1,4 @@
+% if ( $FS::CurrentUser::CurrentUser->access_right('List customers') ) {
<form action="<% $RT::URI::freeside::URL %>/search/cust_main.cgi" STYLE="margin:0">
<SCRIPT TYPE="text/javascript">
function clearhint_search_cust (what) {
@@ -6,6 +7,7 @@
}
</SCRIPT>
<input name="search_cust" accesskey="0" VALUE="(cust #, name, company or phone)" SIZE="28" onFocus="clearhint_search_cust(this);" onClick="clearhint_search_cust(this);" STYLE="text-align:right; font-family: Arial, Verdana, Helvetica, sans-serif;"><BR>
-<A NOTYET="<% $RT::URI::freeside::URL %>/search/cust_main.html" STYLE="color: #000000; font-size: 70%; font-weight:normal">Advanced</A>
+<A HREF="<% $RT::URI::freeside::URL %>/search/report_cust_main.html" STYLE="color: #ffffff; font-size: 70%; font-weight:normal">Advanced</A>
<input type="submit" value="<&|/l&>Search customers</&>" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%">
</form>
+% }
More information about the freeside-commits
mailing list