Skip to content

olya_task 15_user_info - #69

Open
olyapetryshyn wants to merge 1 commit into
masterfrom
olya_user_info
Open

olya_task 15_user_info #69
olyapetryshyn wants to merge 1 commit into
masterfrom
olya_user_info

Conversation

@olyapetryshyn

Copy link
Copy Markdown
Collaborator

No description provided.

return users[name]


@check_access

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please modify your decorator to make it possible to use like this?

@check_access(['pivanchy', 'olya_petryshyn'])
def check_perms():
    return 'Allowed access'

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.

2 participants