File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ def acl_setuser(
193193 selectors : Optional [Iterable [Tuple [str , KeyT ]]] = None ,
194194 reset : bool = False ,
195195 reset_keys : bool = False ,
196+ reset_channels : bool = False ,
196197 reset_passwords : bool = False ,
197198 ** kwargs ,
198199 ) -> ResponseT :
@@ -248,6 +249,12 @@ def acl_setuser(
248249 key permissions will be kept and any new specified key permissions
249250 will be applied on top.
250251
252+ ``reset_channels`` is a boolean indicating whether the user's channel
253+ permissions should be reset prior to applying any new channel permissions
254+ specified in ``channels``.If this is False, the user's existing
255+ channel permissions will be kept and any new specified channel permissions
256+ will be applied on top.
257+
251258 ``reset_passwords`` is a boolean indicating whether to remove all
252259 existing passwords and the 'nopass' flag from the user prior to
253260 applying any new passwords specified in 'passwords' or
@@ -266,6 +273,9 @@ def acl_setuser(
266273 if reset_keys :
267274 pieces .append (b"resetkeys" )
268275
276+ if reset_channels :
277+ pieces .append (b"resetchannels" )
278+
269279 if reset_passwords :
270280 pieces .append (b"resetpass" )
271281
You can’t perform that action at this time.
0 commit comments