[Rt-commit] [svn] r1444 - in rt/branches/3.3-TESTING: .
html/Elements html/Search/Elements
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Wed Sep 8 01:24:02 EDT 2004
Author: jesse
Date: Wed Sep 8 01:24:02 2004
New Revision: 1444
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/html/Elements/SelectQueue
rt/branches/3.3-TESTING/html/Search/Elements/PickBasics
Log:
r10178 at tinbook: jesse | 2004-09-08T05:16:16.426259Z
When searching for tickets, now the user will only see tickets they have the right to ShowTicket in...
Modified: rt/branches/3.3-TESTING/html/Elements/SelectQueue
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/SelectQueue (original)
+++ rt/branches/3.3-TESTING/html/Elements/SelectQueue Wed Sep 8 01:24:02 2004
@@ -53,7 +53,7 @@
<OPTION VALUE="">-</OPTION>
% }
% while (my $queue=$q->Next) {
-% if ($ShowAllQueues || $queue->CurrentUserHasRight('CreateTicket')) {
+% if ($ShowAllQueues || $queue->CurrentUserHasRight($CheckQueueRight)) {
<OPTION VALUE="<%($NamedValues ? $queue->Name : $queue->Id) %>" <%( $queue->Id eq $Default ? 'SELECTED' : '')%>><%$queue->Name%>
% if (($Verbose) and ($queue->Description) ){
(<%$queue->Description%>)
@@ -64,6 +64,7 @@
</SELECT>
% }
<%ARGS>
+$CheckQueueRight => 'CreateTicket'
$ShowNullOption => 1
$ShowAllQueues => 1
$Name => undef
Modified: rt/branches/3.3-TESTING/html/Search/Elements/PickBasics
==============================================================================
--- rt/branches/3.3-TESTING/html/Search/Elements/PickBasics (original)
+++ rt/branches/3.3-TESTING/html/Search/Elements/PickBasics Wed Sep 8 01:24:02 2004
@@ -42,7 +42,7 @@
%# works based on those contributions, and sublicense and distribute
%# those contributions and any derivatives thereof.
%#
-%# END BPS TAGGED BLOCK
+%# }}} END BPS TAGGED BLOCK
<tr>
<td class="label">
@@ -77,7 +77,10 @@
TrueVal=> '=',
FalseVal => '!=' &>
</td><td>
-<& /Elements/SelectQueue, Name => "ValueOfQueue", NamedValues => 1 &>
+<& /Elements/SelectQueue,
+ Name => "ValueOfQueue",
+ NamedValues => 1,
+ CheckQueueRight => 'ShowTicket' &>
</td>
</tr>
<tr>
More information about the Rt-commit
mailing list