Skip to content

Update roles_required_app.py#329

Open
geauxdojang wants to merge 1 commit intolingthio:v0.6from
geauxdojang:patch-2
Open

Update roles_required_app.py#329
geauxdojang wants to merge 1 commit intolingthio:v0.6from
geauxdojang:patch-2

Conversation

@geauxdojang
Copy link
Copy Markdown

is that correct?

   # The Special page requires a user with 'secret' and 'sauce' roles or with 'secret' and 'agent' roles.
    @app.route('/special')
    @roles_required('secret', ['sauce', 'agent'])   # Use of @roles_required decorator

is that correct?
```python
   # The Special page requires a user with 'secret' and 'sauce' roles or with 'secret' and 'agent' roles.
    @app.route('/special')
    @roles_required('secret', ['sauce', 'agent'])   # Use of @roles_required decorator
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant