Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acf-weblog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACF
acf-weblog
Commits
049eb581
Commit
049eb581
authored
Sep 09, 2011
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check permissions before displaying download buttons
parent
5b3647c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
weblog-adhocquery-html.lsp
weblog-adhocquery-html.lsp
+2
-0
weblog-viewweblog-html.lsp
weblog-viewweblog-html.lsp
+3
-3
No files found.
weblog-adhocquery-html.lsp
View file @
049eb581
...
...
@@ -33,12 +33,14 @@ require("viewfunctions")
<% end %>
</TABLE>
<% if viewlibrary.check_permission("downloadadhocquery") then %>
<form action="/cgi-bin/acf/weblog/weblog/downloadadhocquery" method="POST">
<input class="hidden" type="hidden" name="query" value="<%= html.html_escape(form.value.query.value) %>" >
<DL>
<DT>Download query result</DT><DD><input class="submit" type="submit" name="Download" value="Download"></DD>
</DL>
</FORM>
<% end %>
<% end %>
<% end %>
...
...
weblog-viewweblog-html.lsp
View file @
049eb581
...
...
@@ -268,8 +268,8 @@ end %>
<% if #data.value.log.value == 0 then %>
<p>No results, try adjusting search parameters</p>
<% end %>
<DT>Download Options</DT>
<% if
page_info.action == "viewweblog"
then %>
<% if
viewlibrary.check_permission("downloadweblog")
then %>
<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/downloadweblog") %>" method="POST">
<input type="hidden" name="activelog" value="<%= html.html_escape(data.value.activelog.value) %>" >
<input type="hidden" name="starttime" value="<%= html.html_escape(data.value.starttime.value) %>" >
...
...
@@ -283,7 +283,7 @@ end %>
<input type="hidden" name="sortby" value="<%= html.html_escape(data.value.sortby.value) %>" >
<input type="hidden" name="urisearch" value="<%= html.html_escape(data.value.urisearch.value) %>" >
<input type="hidden" name="selected" value="<%= html.html_escape(data.value.selected.value) %>" >
<D
D><input class="submit" type="submit" name="Download" value="Export List
"></DD>
<D
T>Download log</DT><DD><input class="submit" type="submit" name="Download" value="Download
"></DD>
</form>
<% end %>
</DL>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment