diff --git a/api/api_v1.py b/api/api_v1.py
index f117811..9e6d8f8 100644
--- a/api/api_v1.py
+++ b/api/api_v1.py
@@ -445,7 +445,9 @@ def set_project_visibility(
project.last_shared = timezone.now()
else:
project.last_shared = None
- if not ispublished is not None:
+
+ # we set is published but it is ignored for now!
+ if ispublished is not None:
project.is_published = ispublished
project.save()
diff --git a/pyrightconfig.json b/pyrightconfig.json
index bda7a16..229268b 100644
--- a/pyrightconfig.json
+++ b/pyrightconfig.json
@@ -5,6 +5,7 @@
"reportFunctionMemberAccess": false,
"reportOptionalMemberAccess": false,
+ "reportAssignmentType": false,
"reportArgumentType": false,
"reportCallIssue": false,
"reportPossiblyUnboundVariable": false
diff --git a/templates/projects/_is_shared.html b/templates/projects/_is_shared.html
index 0aac9b0..35c1631 100644
--- a/templates/projects/_is_shared.html
+++ b/templates/projects/_is_shared.html
@@ -11,7 +11,7 @@
- {% if request.user == project.user or request.user.is_superuser or request.user.is_moderator %}
+ {% if request.user == project.user %}
- {% if request.user == project.user or request.user.is_superuser or request.user.is_moderator %}
+ {% if request.user == project.user %}
This project is private. {% trans "Tags" %}:
{% include "projects/_project_stats.html" %}
{% endif %}
- {% if request.user.is_superuser or request.user.is_editor %}
+ {% if request.user.is_superuser or request.user.is_editor or request.user.is_moderator %}