1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 19:43:13 +02:00

Add a chanserv/access/list privilege

Replace the existing chanserv/access/list command access,
only used in cs_xop, by a privilege with the same name.

It which allows read-only access to cs_access, cs_flags, cs_xop
and cs_akick, while the already-existing chanserv/access/modify
privilege allows to modify them.
This commit is contained in:
Thomas Fargeix
2014-10-11 22:56:31 +02:00
committed by Adam
parent 0991d4e199
commit 96583892c6
6 changed files with 20 additions and 3 deletions
+2
View File
@@ -388,6 +388,8 @@ class CommandCSFlags : public Command
bool has_access = false;
if (source.HasPriv("chanserv/access/modify"))
has_access = true;
else if (is_list && source.HasPriv("chanserv/access/list"))
has_access = true;
else if (is_list && source.AccessFor(ci).HasPriv("ACCESS_LIST"))
has_access = true;
else if (source.AccessFor(ci).HasPriv("ACCESS_CHANGE"))