Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c4475f39
Commit
c4475f39
authored
Jun 04, 2003
by
Mac Newbold
Browse files
Don't require a useless uid param for isadmin, but allow it.
parent
e2c71224
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/tbauth.php3
View file @
c4475f39
...
...
@@ -316,11 +316,13 @@ function LOGGEDINORDIE($uid, $modifier = 0) {
# in user that has to be admin. So ignore the uid and make sure
# there is a login status.
#
function
ISADMIN
(
$uid
)
{
function
ISADMIN
(
$uid
=
1
)
{
global
$CHECKLOGIN_STATUS
;
if
(
$CHECKLOGIN_STATUS
==
CHECKLOGIN_NOSTATUS
)
if
(
$CHECKLOGIN_STATUS
==
CHECKLOGIN_NOSTATUS
)
{
$uid
=
GETUID
();
TBERROR
(
"ISADMIN:
$uid
is not logged in!"
,
1
);
}
return
((
$CHECKLOGIN_STATUS
&
(
CHECKLOGIN_LOGGEDIN
|
CHECKLOGIN_ISADMIN
|
CHECKLOGIN_ADMINOFF
))
==
...
...
Write
Preview
Supports
Markdown
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