aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-20 13:07:04 +0200
committerKim Alvefur <zash@zash.se>2022-07-20 13:07:04 +0200
commit55378f128acb817baab9fbeb412768f1a748a969 (patch)
tree4ad245fb4603a836b02130db0266d8329456ee14 /core
parent5f8e4414499e33a05dc8eda7a224e69c70bdb7a2 (diff)
downloadprosody-55378f128acb817baab9fbeb412768f1a748a969.tar.gz
prosody-55378f128acb817baab9fbeb412768f1a748a969.zip
moduleapi: Remove redundant expansion of ':' prefix in permission names
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua1
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