Skip to content

Commit

Permalink
Removed unneeded check for deleted user when executing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbaranov committed Aug 11, 2024
1 parent 371e93f commit 0d0906e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/access.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Access {
required OnFailureCallback onFailure}) async {
var user = await _userDb.getSingleUserForChat(event.chatId, event.userId);

if (user == null || user.banned || user.deleted) {
if (user == null || user.banned) {
return onFailure(event);
}

Expand Down

0 comments on commit 0d0906e

Please sign in to comment.