16 lines
443 B
Python
16 lines
443 B
Python
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()
|