Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
tiki
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Tiki Wiki CMS Groupware
tiki
Commits
a26ce399
Commit
a26ce399
authored
Mar 25, 2004
by
chealer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of moving to save about 10 queries when browsing with tiki_p_admin.
parent
06546281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
tiki/tiki-setup_base.php
tiki/tiki-setup_base.php
+17
-14
No files found.
tiki/tiki-setup_base.php
View file @
a26ce399
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-setup_base.php,v 1.5
4 2004-03-18 21:22:36
chealer Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-setup_base.php,v 1.5
5 2004-03-25 21:02:45
chealer Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
...
...
@@ -191,23 +191,14 @@ if(!$cachelib->isCached("allperms")) {
}
$allperms
=
$allperms
[
"data"
];
//Initializes permissions
foreach
(
$allperms
as
$vperm
)
{
$perm
=
$vperm
[
"permName"
];
if
(
$user
!=
'admin'
&&
(
!
$user
||
!
$userlib
->
user_has_permission
(
$user
,
'tiki_p_admin'
)))
{
$$perm
=
'n'
;
$perm
=
$vperm
[
"permName"
];
$$perm
=
'n'
;
$smarty
->
assign
(
"
$perm
"
,
'n'
);
}
else
{
$$perm
=
'y'
;
$smarty
->
assign
(
"
$perm
"
,
'y'
);
}
$smarty
->
assign
(
"
$perm
"
,
'n'
);
}
unset
(
$allperms
);
// Permissions
// Get group permissions here
$perms
=
$userlib
->
get_user_permissions
(
$user
);
...
...
@@ -371,6 +362,18 @@ if ($tiki_p_admin_cms == 'y') {
}
}
//Gives admins all permissions
if
(
$user
==
'admin'
||
(
$user
&&
$userlib
->
user_has_permission
(
$user
,
'tiki_p_admin'
)))
{
foreach
(
$allperms
as
$vperm
)
{
$perm
=
$vperm
[
"permName"
];
$$perm
=
'y'
;
$smarty
->
assign
(
"
$perm
"
,
'y'
);
}
}
unset
(
$allperms
);
$tikiIndex
=
$tikilib
->
get_preference
(
"tikiIndex"
,
'tiki-index.php'
);
$style
=
$tikilib
->
get_preference
(
"style"
,
'moreneat.css'
);
...
...
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