[Bps-public-commit] RT-BugTracker-Public branch, 4.2-4.4-compatibility, updated. 1.00-24-g013afbd

Shawn Moore shawn at bestpractical.com
Wed Mar 29 17:45:55 EDT 2017


The branch, 4.2-4.4-compatibility has been updated
       via  013afbd766b3b515a52fa1eac0977fd5483f2b97 (commit)
       via  309c4085669b2e375e7beeaf484770d41ae93d6f (commit)
      from  f0ca4c7f801b99641a7e6d386d28ac5c55edbf41 (commit)

Summary of changes:
 html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged | 7 +++++++
 html/Public/Elements/DistributionList                     | 2 ++
 lib/RT/BugTracker/Public.pm                               | 8 ++++++++
 3 files changed, 17 insertions(+)

- Log -----------------------------------------------------------------
commit 309c4085669b2e375e7beeaf484770d41ae93d6f
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Mar 29 21:45:00 2017 +0000

    Finish support for WebPublicUserQueryBuilder

diff --git a/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged b/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged
index 07de3e7..e337e22 100644
--- a/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged
+++ b/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged
@@ -72,6 +72,13 @@ Menu()->child(
     path        => '/Public/',
 );
 
+if (RT->Config->Get('WebPublicUserQueryBuilder')) {
+    Menu()->child(
+        query_builder => title => loc('Advanced Search'),
+        path        => '/Search/Build.html?NewQuery=1',
+    );
+}
+
 unless (RT->Config->Get('BugTracker_ShowAllDistributions')) {
     Menu()->child(
         browse_dist => title => loc('Browse Distributions'),
diff --git a/lib/RT/BugTracker/Public.pm b/lib/RT/BugTracker/Public.pm
index af53750..556da46 100644
--- a/lib/RT/BugTracker/Public.pm
+++ b/lib/RT/BugTracker/Public.pm
@@ -153,6 +153,14 @@ web UI. To allow this, add this line:
 
     Set($WebPublicUserReporting, 1);
 
+=head2 WebPublicUserQueryBuilder
+
+By default, the web public user cannot use RT's fully-featured query builder
+and is limited instead to simple search. To allow access to the query
+builder, add this line:
+
+    Set($WebPublicUserQueryBuilder, 1);
+
 =cut
 
 sub IsPublicUser {

commit 013afbd766b3b515a52fa1eac0977fd5483f2b97
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Mar 29 21:45:20 2017 +0000

    Respect WebPublicUserReporting to suppress "Report a bug" in queue listing

diff --git a/html/Public/Elements/DistributionList b/html/Public/Elements/DistributionList
index 108e2ff..3d1f29b 100644
--- a/html/Public/Elements/DistributionList
+++ b/html/Public/Elements/DistributionList
@@ -64,8 +64,10 @@
   <li>
     <span class="dist-actions">
       <a href="<% $RT::WebPath %>/Public/Dist/Display.html?Name=<% $queue->Name |u %>">Bug list</a>
+% if (RT->Config->Get('WebPublicUserReporting')) {
       •
       <a href="<% $RT::WebPath %>/Public/Bug/Report.html?Queue=<% $queue->Name |u %>">Report a bug</a>
+% }
     </span>
     <strong><% $queue->Name %></strong>
   </li>

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list