Software /
code /
prosody
Diff
core/moduleapi.lua @ 12651:1ce98f27eabe
moduleapi: Remove redundant expansion of ':' prefix in permission names
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 20 Jul 2022 13:07:04 +0200 |
parent | 12650:e08bf2ad67da |
child | 12652:30e2a0107217 |
line wrap: on
line diff
--- 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