chanserv: SOP protect tier over AOP (+ao), founder owner (+qo); resolve op access by capability not mode string
All checks were successful
CI / check (push) Successful in 3m59s
All checks were successful
CI / check (push) Successful in 3m59s
This commit is contained in:
parent
c8106035df
commit
2f6fd41465
7 changed files with 139 additions and 37 deletions
|
|
@ -496,7 +496,7 @@
|
|||
db.access_add("#c", "bob", "voice").unwrap();
|
||||
|
||||
let info = db.channel("#c").unwrap();
|
||||
assert_eq!(info.join_mode("boss"), Some("+o")); // founder
|
||||
assert_eq!(info.join_mode("boss"), Some("+qo")); // founder: owner + op
|
||||
assert_eq!(info.join_mode("ALICE"), Some("+o")); // op, case-insensitive
|
||||
assert_eq!(info.join_mode("bob"), Some("+v")); // voice
|
||||
assert_eq!(info.join_mode("nobody"), None);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue