We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b9b84 commit d8ce179Copy full SHA for d8ce179
tigacrafting/managers.py
@@ -313,10 +313,11 @@ def _assignable(self, state: bool = True) -> QuerySet:
313
def browsable(self, user: Union[User, 'tigaserver_app.TigaUser']) -> QuerySet:
314
from tigacrafting.models import IdentificationTask, UserStat
315
316
+ qs = self
317
+
318
view_archived_perm = '%(app_label)s.view_archived_identificationtasks' % {
319
'app_label': IdentificationTask._meta.app_label,
320
}
- qs = self
321
# Exclude archived tasks unless user is a full User and has permission
322
if not user.has_perm(view_archived_perm):
323
qs = qs.exclude(status=IdentificationTask.Status.ARCHIVED)
0 commit comments