ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: guest-доступ Operational Core
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
|
||||
|
||||
def nodedc_env_flag(name):
|
||||
return os.environ.get(name, "").strip().lower() in {"1", "true", "yes", "on"}
|
||||
|
||||
|
||||
def nodedc_guest_read_all_issues_enabled():
|
||||
return nodedc_env_flag("PLANE_NODEDC_GUEST_READ_ALL_ISSUES") or nodedc_env_flag(
|
||||
"PLANE_NODEDC_ACCESS_ENFORCEMENT"
|
||||
)
|
||||
|
||||
|
||||
def should_limit_guest_to_own_issues(project):
|
||||
return not project.guest_view_all_features and not nodedc_guest_read_all_issues_enabled()
|
||||
Reference in New Issue
Block a user