@@ -660,7 +660,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
660
660
mut tx : Transaction < RT > ,
661
661
udf_path : CanonicalizedUdfPath ,
662
662
arguments : ConvexArray ,
663
- allowed_visibility : AllowedVisibility ,
664
663
caller : FunctionCaller ,
665
664
) -> anyhow:: Result < UdfOutcome > {
666
665
if !( tx. identity ( ) . is_admin ( ) || tx. identity ( ) . is_system ( ) ) {
@@ -670,7 +669,7 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
670
669
let identity = tx. inert_identity ( ) ;
671
670
let start = self . runtime . monotonic_now ( ) ;
672
671
let validate_result = ValidatedUdfPathAndArgs :: new (
673
- allowed_visibility,
672
+ caller . allowed_visibility ( ) ,
674
673
& mut tx,
675
674
udf_path. clone ( ) ,
676
675
arguments. clone ( ) ,
@@ -731,7 +730,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
731
730
arguments : Vec < JsonValue > ,
732
731
identity : Identity ,
733
732
mutation_identifier : Option < SessionRequestIdentifier > ,
734
- allowed_visibility : AllowedVisibility ,
735
733
caller : FunctionCaller ,
736
734
pause_client : PauseClient ,
737
735
block_logging : bool ,
@@ -744,7 +742,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
744
742
arguments,
745
743
identity,
746
744
mutation_identifier,
747
- allowed_visibility,
748
745
caller,
749
746
pause_client,
750
747
block_logging,
@@ -766,7 +763,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
766
763
arguments : Vec < JsonValue > ,
767
764
identity : Identity ,
768
765
mutation_identifier : Option < SessionRequestIdentifier > ,
769
- allowed_visibility : AllowedVisibility ,
770
766
caller : FunctionCaller ,
771
767
mut pause_client : PauseClient ,
772
768
block_logging : bool ,
@@ -818,7 +814,7 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
818
814
tx,
819
815
udf_path. clone ( ) ,
820
816
arguments. clone ( ) ,
821
- allowed_visibility . clone ( ) ,
817
+ caller . allowed_visibility ( ) ,
822
818
context. clone ( ) ,
823
819
)
824
820
. await ;
@@ -1034,7 +1030,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1034
1030
name : UdfPath ,
1035
1031
arguments : Vec < JsonValue > ,
1036
1032
identity : Identity ,
1037
- allowed_visibility : AllowedVisibility ,
1038
1033
caller : FunctionCaller ,
1039
1034
block_logging : bool ,
1040
1035
) -> anyhow:: Result < Result < ActionReturn , ActionError > > {
@@ -1059,7 +1054,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1059
1054
name. clone ( ) ,
1060
1055
arguments. clone ( ) ,
1061
1056
identity. clone ( ) ,
1062
- allowed_visibility,
1063
1057
caller. clone ( ) ,
1064
1058
usage_tracking. clone ( ) ,
1065
1059
context. clone ( ) ,
@@ -1109,21 +1103,12 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1109
1103
name : CanonicalizedUdfPath ,
1110
1104
arguments : ConvexArray ,
1111
1105
identity : Identity ,
1112
- allowed_visibility : AllowedVisibility ,
1113
1106
caller : FunctionCaller ,
1114
1107
usage_tracking : FunctionUsageTracker ,
1115
1108
context : ExecutionContext ,
1116
1109
) -> anyhow:: Result < ActionCompletion > {
1117
1110
let result = self
1118
- . run_action_inner (
1119
- name,
1120
- arguments,
1121
- identity,
1122
- allowed_visibility,
1123
- caller,
1124
- usage_tracking,
1125
- context,
1126
- )
1111
+ . run_action_inner ( name, arguments, identity, caller, usage_tracking, context)
1127
1112
. await ;
1128
1113
match result. as_ref ( ) {
1129
1114
Ok ( completion) => {
@@ -1151,7 +1136,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1151
1136
name : CanonicalizedUdfPath ,
1152
1137
arguments : ConvexArray ,
1153
1138
identity : Identity ,
1154
- allowed_visibility : AllowedVisibility ,
1155
1139
caller : FunctionCaller ,
1156
1140
usage_tracking : FunctionUsageTracker ,
1157
1141
context : ExecutionContext ,
@@ -1166,7 +1150,7 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1166
1150
. begin_with_usage ( identity. clone ( ) , usage_tracking)
1167
1151
. await ?;
1168
1152
let validate_result = ValidatedUdfPathAndArgs :: new (
1169
- allowed_visibility,
1153
+ caller . allowed_visibility ( ) ,
1170
1154
& mut tx,
1171
1155
name. clone ( ) ,
1172
1156
arguments. clone ( ) ,
@@ -1821,7 +1805,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1821
1805
identity : Identity ,
1822
1806
ts : Timestamp ,
1823
1807
journal : Option < QueryJournal > ,
1824
- allowed_visibility : AllowedVisibility ,
1825
1808
caller : FunctionCaller ,
1826
1809
block_logging : bool ,
1827
1810
) -> anyhow:: Result < QueryReturn > {
@@ -1833,7 +1816,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1833
1816
identity,
1834
1817
ts,
1835
1818
journal,
1836
- allowed_visibility,
1837
1819
caller,
1838
1820
block_logging,
1839
1821
)
@@ -1866,7 +1848,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1866
1848
identity : Identity ,
1867
1849
ts : Timestamp ,
1868
1850
journal : Option < QueryJournal > ,
1869
- allowed_visibility : AllowedVisibility ,
1870
1851
caller : FunctionCaller ,
1871
1852
block_logging : bool ,
1872
1853
) -> anyhow:: Result < QueryReturn > {
@@ -1900,7 +1881,6 @@ impl<RT: Runtime> ApplicationFunctionRunner<RT> {
1900
1881
identity. clone ( ) ,
1901
1882
ts,
1902
1883
journal,
1903
- allowed_visibility,
1904
1884
caller,
1905
1885
block_logging,
1906
1886
usage_tracker. clone ( ) ,
@@ -1986,7 +1966,6 @@ impl<RT: Runtime> ActionCallbacks for ApplicationFunctionRunner<RT> {
1986
1966
identity,
1987
1967
* ts,
1988
1968
None ,
1989
- AllowedVisibility :: All ,
1990
1969
FunctionCaller :: Action {
1991
1970
parent_scheduled_job : context. parent_scheduled_job ,
1992
1971
} ,
@@ -2013,7 +1992,6 @@ impl<RT: Runtime> ActionCallbacks for ApplicationFunctionRunner<RT> {
2013
1992
args,
2014
1993
identity,
2015
1994
None ,
2016
- AllowedVisibility :: All ,
2017
1995
FunctionCaller :: Action {
2018
1996
parent_scheduled_job : context. parent_scheduled_job ,
2019
1997
} ,
@@ -2044,7 +2022,6 @@ impl<RT: Runtime> ActionCallbacks for ApplicationFunctionRunner<RT> {
2044
2022
name,
2045
2023
args,
2046
2024
identity,
2047
- AllowedVisibility :: All ,
2048
2025
FunctionCaller :: Action {
2049
2026
parent_scheduled_job : context. parent_scheduled_job ,
2050
2027
} ,
0 commit comments