Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
696fed33
Commit
696fed33
authored
Mar 27, 2018
by
Pablo Panero
Browse files
Edit change method get_user_provides to permissions.py
parent
16da1409
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest/modules/records/utils.py
View file @
696fed33
...
...
@@ -2,10 +2,3 @@
# -*- coding: utf-8 -*-
"""Helper methods for CERN Search records."""
from
flask
import
g
def
get_user_provides
():
"""Extract the user's provides from g."""
return
[
need
.
value
for
need
in
g
.
identity
.
provides
]
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment