git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gitlab CI - Debugging
[tpg/opendispense2.git]
/
src
/
server
/
handler_door.c
diff --git
a/src/server/handler_door.c
b/src/server/handler_door.c
index
78e0b2a
..
1db954f
100644
(file)
--- a/
src/server/handler_door.c
+++ b/
src/server/handler_door.c
@@
-101,7
+101,7
@@
int Door_CanDispense(int User, int Item)
// Sanity please
if( Item != 0 ) return -1;
// 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);
{
#if DEBUG
printf("Door_CanDispense: User %i not in door\n", User);
@@
-129,7
+129,7
@@
int Door_DoDispense(int User, int Item)
if( Item != 0 ) return -1;
// Check if user is in door
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);
{
#if DEBUG
printf("Door_CanDispense: User %i not in door\n", User);
UCC
git Repository :: git.ucc.asn.au