def check_visibility(): check_function_visibility(request, KEY_F_AUTO_SYNC_TASK, KEY_M_RULESET) scheduler = RulesetSyncUpScheduler.objects.get(id=scheduler_id) check_scheduler_detail_visibility(request.user.id, scheduler.source_environment.id, scheduler.target_environment.id, scheduler.country_list.all(), KEY_F_AUTO_SYNC_TASK, KEY_M_RULESET)
def check_visibility(): check_function_visibility(request, KEY_F_REPORT_TASK, KEY_M_RULESET) scheduler = ReportSchedulerInfo.objects.get(id=scheduler_id) check_scheduler_detail_visibility(request.user.id, scheduler.base_environment.id, scheduler.compare_environment.id, scheduler.country_list.all(), KEY_F_REPORT_TASK, KEY_M_RULESET)
def check_visibility(): check_function_visibility(request, KEY_F_AUTO_SYNC_TASK, KEY_M_RULESET) enable_environment_list = enable_environments(request.user.id, KEY_F_AUTO_SYNC_TASK, KEY_M_RULESET) sync_from_environment_list = enable_sync_from_environments( KEY_M_RULESET) sync_to_environment_list = enable_sync_to_environments(KEY_M_RULESET) # check data visibility if len(sync_from_environment_list) == 0 and len( sync_to_environment_list) == 0: raise NoAvailableDataError if len(get_union(enable_environment_list, sync_from_environment_list)) == 0 or \ len(get_union(enable_environment_list, sync_to_environment_list)) == 0: raise PermissionDeniedError
def after_check(): check_function_visibility(request, KEY_F_ROLE_PERMISSION, KEY_M_SETTING) json_data = get_post_request_json(request) edit_role_permission_data(json_data) result = ResponseBuilder().get_data() return JsonResponse(data=result)
def after_check(): check_function_visibility(request, KEY_F_ROLE_PERMISSION, KEY_M_SETTING) data = get_role_permission_edit(request.user, environment_id) return render(request, "role_permission_edit.html", data)
def after_check(): check_function_visibility(request, KEY_F_USER_ROLE, KEY_M_SETTING) data = get_user_role_edit(request.user, user_id) return render(request, "user_role_edit.html", data)
def after_check(): check_function_visibility(request, KEY_F_USER_ROLE, KEY_M_SETTING) data = {KEY_NAVIGATION_INFO: SettingInfoBuilder(request.user).get_data()} return render(request, "setting_base.html", data)
def after_check(visible_data): check_function_visibility(request, KEY_F_GIT_PATH_MANGER, KEY_M_SETTING) data = GitCountryPathListBuilder(request.user, visible_data).get_data() return render(request, "git_country_path_list.html", data)
def check_visibility(): pass check_function_visibility(request, KEY_F_GIT_PATH_MANGER, KEY_M_SETTING)
def check_visibility(): check_function_visibility(request, KEY_F_REPORT_TASK, KEY_M_RULESET)
def after_check(visible_data): check_function_visibility(request, KEY_F_SERVER_LOG, KEY_M_RULESET) data = server_log_page(request.user, log_type) return render(request, "server_log.html", data)
def check_visibility(): check_function_visibility(request, KEY_F_SERVER_LOG, KEY_M_RULESET)
def check_visibility(): check_function_visibility(request, KEY_F_RULESET_LOG, KEY_M_RULESET) check_ruleset_log_detail_visibility(request.user.id, log_id)
def check_visibility(): check_function_visibility(request, KEY_F_RECOVERY, KEY_M_RULESET)
def check_visibility(): check_function_visibility(request, KEY_F_AUTO_SYNC_TASK, KEY_M_RULESET)
def check_visibility(): check_function_visibility(request, KEY_F_REPORT_TASK, KEY_M_SHARED_STORAGE)