Skip to content

Commit

Permalink
added another permission example to the consumer decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrew committed Feb 26, 2024
1 parent 69300d9 commit ad548bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tethys_apps/base/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ class MyConsumer(AsyncWebsocketConsumer):
)
class MyConsumer(AsyncWebsocketConsumer):
pass
------------
@consumer(
name='custom_name',
url='customized/url',
permissions_required='permission',
login_required=True
)
class MyConsumer(AsyncWebsocketConsumer):
pass
""" # noqa: E501

def wrapped(function_or_class):
Expand Down

0 comments on commit ad548bc

Please sign in to comment.