Keep permissionName intact

This commit is contained in:
Karlatemp 2020-10-16 18:13:56 +08:00 committed by GitHub
parent 7cb6ee1e18
commit e31174a2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ public interface PermissionService<P : Permission> {
reason: PluginPermissionIdRequestType
) = PermissionId(
plugin.name.toLowerCase().replace(' ', '.'),
permissionName
permissionName.toLowerCase()
)
public fun PermissionId.findCorrespondingPermission(): Permission? = INSTANCE[this]