From f9611ef6bcb8fe1af965db03b6fab947f77ccd38 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 11 Jul 2018 21:40:30 -0700 Subject: [PATCH] relay: grant CHANDESC permissions to opers if allow_free_oper_links is true --- example-conf.yml | 8 ++++---- plugins/relay.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example-conf.yml b/example-conf.yml index ed9fc37..c55b6b2 100644 --- a/example-conf.yml +++ b/example-conf.yml @@ -681,10 +681,10 @@ relay: # This block defines various options for the Relay plugin. You don't need this # if you aren't using it. - # Determines whether all opers should be able to create, link, delink, destroy, - # and adjust claim settings on relay channels. You can disable this if you want - # to configure link permissions in a more fine grained way, e.g. by granting each - # network admin their own PyLink account. + # Determines whether all opers should be able to create, link, delink, destroy, and adjust + # claim settings & channel descriptions on relay channels. You can disable this if you want to + # configure Relay permissions in a more fine grained way, e.g. by granting each network admin + # their own PyLink account. # This defaults to True if not set, for consistency with older (< 2.0) PyLink versions. # Changing this setting requires a rehash and reload of the Relay plugin to apply. allow_free_oper_links: true diff --git a/plugins/relay.py b/plugins/relay.py index 2232d04..c7e27da 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -29,7 +29,7 @@ db = datastore.store default_permissions = {"*!*@*": ['relay.linked'], "$ircop": ['relay.linkacl*']} default_oper_permissions = {"$ircop": ['relay.create', 'relay.destroy', 'relay.link', - 'relay.delink', 'relay.claim']} + 'relay.delink', 'relay.claim', 'relay.chandesc*']} ### INTERNAL FUNCTIONS