Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag Edit/Create UI #8194

Closed
wants to merge 2 commits into from
Closed

Tag Edit/Create UI #8194

wants to merge 2 commits into from

Conversation

mekarpeles
Copy link
Member

Supersedes #7766, @JaydenTeoh's work has been cherry-picked and moved to this clean PR. Great work!

@jimchamp jimchamp self-assigned this Aug 21, 2023
Comment on lines +46 to +48
return web.ctx.user and (
web.ctx.user.is_usergroup_member('/usergroup/super-librarians')
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return web.ctx.user and (
web.ctx.user.is_usergroup_member('/usergroup/super-librarians')
)
user = web.ctx.site.get_user()
return user and (
user.is_usergroup_member('/usergroup/super-librarians')
)

Attempting to get the current user in this way is causing errors. Use get_user() instead.

@mekarpeles mekarpeles closed this Aug 23, 2023
@mekarpeles
Copy link
Member Author

Duplicate of #8216

@mekarpeles mekarpeles marked this as a duplicate of #8216 Aug 23, 2023
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