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
Client - Broke the client out into separate files
[tpg/opendispense2.git]
/
src
/
server
/
server.c
diff --git
a/src/server/server.c
b/src/server/server.c
index
98b0325
..
9780058
100644
(file)
--- a/
src/server/server.c
+++ b/
src/server/server.c
@@
-685,8
+685,7
@@
void Server_Cmd_SETEUSER(tClient *Client, char *Args)
sendf(Client->Socket, "404 User not found\n");
return ;
}
sendf(Client->Socket, "404 User not found\n");
return ;
}
-
- // You can't be an internal account
+ // You can't be an internal account (unless you're an admin)
if( !(userFlags & USER_FLAG_ADMIN) )
{
eUserFlags = Bank_GetFlags(Client->EffectiveUID);
if( !(userFlags & USER_FLAG_ADMIN) )
{
eUserFlags = Bank_GetFlags(Client->EffectiveUID);
@@
-705,7
+704,7
@@
void Server_Cmd_SETEUSER(tClient *Client, char *Args)
// Disabled accounts
if( userFlags & USER_FLAG_DISABLED ) {
// Disabled accounts
if( userFlags & USER_FLAG_DISABLED ) {
- Client->UID = -1;
+ Client->
Effective
UID = -1;
sendf(Client->Socket, "403 Account disabled\n");
return ;
}
sendf(Client->Socket, "403 Account disabled\n");
return ;
}
UCC
git Repository :: git.ucc.asn.au