动态auth完成。
This commit is contained in:
@@ -149,7 +149,7 @@ class PointTradePlugin(MessagePluginInterface):
|
||||
|
||||
self.revoke: MessageAutoRevoke = message.get("revoke")
|
||||
# 检查权限
|
||||
if roomid and gbm.get_group_permission(roomid, Feature.POINT_TRADE) == PermissionStatus.DISABLED:
|
||||
if roomid and gbm.get_group_permission(roomid, self.feature) == PermissionStatus.DISABLED:
|
||||
return False, "没有权限"
|
||||
|
||||
# 处理不同的命令
|
||||
|
||||
Reference in New Issue
Block a user