|
@@ -25,7 +25,7 @@ namespace CardCollector.Commands.Message.TextMessage
|
|
/* Нужно помимо совпадения текста проверить пользователя на уровень привилегий */
|
|
/* Нужно помимо совпадения текста проверить пользователя на уровень привилегий */
|
|
protected internal override bool IsMatches(UserEntity user, Update update)
|
|
protected internal override bool IsMatches(UserEntity user, Update update)
|
|
{
|
|
{
|
|
- return base.IsMatches(user, update) && User.PrivilegeLevel >= Constants.PROGRAMMER_PRIVILEGE_LEVEL;
|
|
|
|
|
|
+ return base.IsMatches(user, update) && user.PrivilegeLevel >= Constants.PROGRAMMER_PRIVILEGE_LEVEL;
|
|
}
|
|
}
|
|
|
|
|
|
public ShowSampleMessage(UserEntity user, Update update) : base(user, update) { }
|
|
public ShowSampleMessage(UserEntity user, Update update) : base(user, update) { }
|