make is_active, is_authenticated, and is_anonymous properties on the Anonymous class so that the login_required decorator will work correctly and disable anonymous browsing
@@ -182,12 +182,15 @@ class Anonymous(AnonymousUserMixin, UserBase):
defrole_admin(self):
returnFalse
@property
defis_active(self):
returnFalse
@property
defis_anonymous(self):
returnself.anon_browse
@property
defis_authenticated(self):
returnFalse
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.