mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Keep permissionName intact
This commit is contained in:
parent
521f928926
commit
7cb6ee1e18
@ -155,7 +155,7 @@ public interface PermissionService<P : Permission> {
|
||||
reason: PluginPermissionIdRequestType
|
||||
) = PermissionId(
|
||||
plugin.name.toLowerCase().replace(' ', '.'),
|
||||
permissionName.toLowerCase().replace(' ', '.')
|
||||
permissionName
|
||||
)
|
||||
|
||||
public fun PermissionId.findCorrespondingPermission(): Permission? = INSTANCE[this]
|
||||
@ -226,4 +226,4 @@ public interface PermissionService<P : Permission> {
|
||||
return p.testPermission(permissible)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user