diff options
author | Adam <Adam@anope.org> | 2013-11-01 04:58:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-01 04:58:38 -0400 |
commit | 4ee9021adbb10140c30d6027a97e4748cb2f5903 (patch) | |
tree | f587e7492f142f8d4e7a908190c83a22087559b0 /include/access.h | |
parent | c8db362bca238aaedf9113383a731d18ba88594f (diff) |
Compare access entries created with the levels access system by access level and not by privilege set, as two entries can have the same privset but different levels, but still represent two different levels of access. This prevented users from adding other users at a lower access level when that level had the same privset as them. Spotted by TSG.
Diffstat (limited to 'include/access.h')
-rw-r--r-- | include/access.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/access.h b/include/access.h index 19b6b3b02..cb24a6030 100644 --- a/include/access.h +++ b/include/access.h @@ -123,8 +123,8 @@ class CoreExport ChanAccess : public Serializable virtual void AccessUnserialize(const Anope::string &data) = 0; /* Comparison operators to other Access entries */ - bool operator>(const ChanAccess &other) const; - bool operator<(const ChanAccess &other) const; + virtual bool operator>(const ChanAccess &other) const; + virtual bool operator<(const ChanAccess &other) const; bool operator>=(const ChanAccess &other) const; bool operator<=(const ChanAccess &other) const; }; |