# HG changeset patch # User Kim Alvefur # Date 1658315224 -7200 # Node ID 1ce98f27eabebffba0f58cdb62b1ddaa602afe05 # Parent e08bf2ad67da18522bcbb4becf3ca3c420faa095 moduleapi: Remove redundant expansion of ':' prefix in permission names diff -r e08bf2ad67da -r 1ce98f27eabe core/moduleapi.lua --- a/core/moduleapi.lua Wed Jul 20 13:05:35 2022 +0200 +++ b/core/moduleapi.lua Wed Jul 20 13:07:04 2022 +0200 @@ -617,7 +617,6 @@ 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