summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set_restricted.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_set_restricted.cpp')
-rw-r--r--modules/commands/cs_set_restricted.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_set_restricted.cpp b/modules/commands/cs_set_restricted.cpp
index 5d675d2e7..b37ae8de4 100644
--- a/modules/commands/cs_set_restricted.cpp
+++ b/modules/commands/cs_set_restricted.cpp
@@ -31,7 +31,7 @@ class CommandCSSetRestricted : public Command
return;
}
- if (source.permission.empty() && !ci->HasPriv(u, CA_SET))
+ if (source.permission.empty() && !ci->AccessFor(u).HasPriv(CA_SET))
{
source.Reply(ACCESS_DENIED);
return;