diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index d72a3c8..2a60815 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -2806,15 +2806,12 @@ def is_watching(session, user, project): if watcher: return watcher.watch - - watch=False if user.username == project.user.username: return True for group in project.groups: for guser in group.users: if user.username == guser.username: - watch=True - break + return True - return watch + return False