Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
OpenDispense2
Commits
9848ce7d
Commit
9848ce7d
authored
Mar 23, 2015
by
John Hodge
Browse files
Merge pull request #5 from gozzarda/gozzarda-patch-admindoor
Enable Admins to Open Door
parents
83d33ade
e58ec3ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/handler_door.c
View file @
9848ce7d
...
...
@@ -100,7 +100,7 @@ int Door_CanDispense(int User, int Item)
// Sanity please
if
(
Item
!=
0
)
return
-
1
;
if
(
!
(
Bank_GetFlags
(
User
)
&
USER_FLAG_DOORGROUP
)
)
if
(
!
(
Bank_GetFlags
(
User
)
&
(
USER_FLAG_DOORGROUP
|
USER_FLAG_ADMIN
)
)
)
{
#if DEBUG
printf
(
"Door_CanDispense: User %i not in door
\n
"
,
User
);
...
...
@@ -128,7 +128,7 @@ int Door_DoDispense(int User, int Item)
if
(
Item
!=
0
)
return
-
1
;
// Check if user is in door
if
(
!
(
Bank_GetFlags
(
User
)
&
USER_FLAG_DOORGROUP
)
)
if
(
!
(
Bank_GetFlags
(
User
)
&
(
USER_FLAG_DOORGROUP
|
USER_FLAG_ADMIN
)
)
)
{
#if DEBUG
printf
(
"Door_CanDispense: User %i not in door
\n
"
,
User
);
...
...
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