Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xowiki
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
xowiki
Commits
db496374
Commit
db496374
authored
May 04, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- SysAdmins are allowed to edit all Wiki pages
parent
c4812106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
portlet.tcl
www/portlets/portlet.tcl
+1
-2
No files found.
www/portlets/portlet.tcl
View file @
db496374
...
...
@@ -106,14 +106,13 @@ db_foreach owners $owner_sql {
append object_owner_ul
"<li><a href=
\"
mailto:
$user
_email
\"
>
$user
_name (mailto:
$user
_email)</a></li>
\n
"
}
if
{
!$read_p
}
{
if
{
!$read_p && !$user_admin_p
}
{
set permission_msg
[
lang::message::lookup
""
intranet-wiki.You_are_not_a_member
"You are not a member of this %object_type_pretty%"
]
set contact_msg
[
lang::message::lookup
""
intranet-wiki.Please_contact_owner
"Please contact one the object owners in order to obtain permissions:"
]
ad_return_complaint 1
"<b>
$permission
_msg</b>:<br>
$contact
_msg<br> <ul>
$object
_owner_ul</ul><br>"
ad_script_abort
}
# Use the latest created object as defaults
if
{
""
==
$project
_id
}
{
set project_id
[
db_string pid
"select max(project_id) from im_projects where parent_id is null"
-default
""
]
}
if
{
""
==
$company
_id
}
{
set company_id
[
db_string pid
"select max(company_id) from im_companies"
-default
""
]
}
...
...
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