diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-20 13:07:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-07-20 13:07:04 +0200 |
commit | 55378f128acb817baab9fbeb412768f1a748a969 (patch) | |
tree | 4ad245fb4603a836b02130db0266d8329456ee14 | |
parent | 5f8e4414499e33a05dc8eda7a224e69c70bdb7a2 (diff) | |
download | prosody-55378f128acb817baab9fbeb412768f1a748a969.tar.gz prosody-55378f128acb817baab9fbeb412768f1a748a969.zip |
moduleapi: Remove redundant expansion of ':' prefix in permission names
-rw-r--r-- | core/moduleapi.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 0ec96fb6..c1d8851e 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -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 |