reviewboard.site.decorators
Decorators for checking Local Site access.
-
check_local_site_access(view_func)[source]
Checks if a user has access to a Local Site.
This checks whether or not the logged-in user is either a member of
a Local Site or if the user otherwise has access to it.
given local site. If not, this shows a permission denied page.
-
check_localsite_admin(view_func)[source]
Checks if a user is an admin on a Local Site.
This checks whether or not the logged-in user is marked as an admin for the
given local site. If not, this shows a permission denied page.