moduleapi: Remove redundant expansion of ':' prefix in permission names

This commit is contained in:
Kim Alvefur 2022-07-20 13:07:04 +02:00
parent 5f8e441449
commit 55378f128a

View file

@ -617,7 +617,6 @@ end
function api:default_permissions(role_name, permissions)
for _, permission in ipairs(permissions) do
permission = permission:gsub("^:", self.name..":");
self:default_permission(role_name, permission);
end
end