*/
int _CanTransfer(int Source, int Destination, int Ammount)
{
- if( Bank_GetFlags(Source) & USER_FLAG_DISABLED )
- return 0;
+// if( Bank_GetFlags(Source) & USER_FLAG_DISABLED )
+// return 0;
if( Ammount > 0 )
{
if( Bank_GetBalance(Source) - Ammount < _GetMinBalance(Source) )
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);
// Disabled accounts
if( userFlags & USER_FLAG_DISABLED ) {
- Client->UID = -1;
+ Client->EffectiveUID = -1;
sendf(Client->Socket, "403 Account disabled\n");
return ;
}