If(
'Form_View/Edit'.DisplayMode = DisplayMode.View && (Gallery_Expenses.Selected.Status.Value = "Draft" || Gallery_Expenses.Selected.Status.Value = "Declined by Accounting" || Gallery_Expenses.Selected.Status.Value = "Declined by Manager" || Gallery_Expenses.Selected.Status.Value = "Declined by CFO" )&& User().Email = Gallery_Expenses.Selected.'Created By'.Email,
true,
If(
'Form_View/Edit'.DisplayMode = DisplayMode.View &&( Gallery_Expenses.Selected.Status.Value = "Draft" || Gallery_Expenses.Selected.Status.Value = "Declined by Accounting" || Gallery_Expenses.Selected.Status.Value = "Declined by Manager" || Gallery_Expenses.Selected.Status.Value = "Declined by CFO" )&& User().Email <> Gallery_Expenses.Selected.'Created By'.Email,
true,
If(
'Form_View/Edit'.DisplayMode = DisplayMode.View && (Gallery_Expenses.Selected.Status.Value = "Awaiting 1st Approval (Accounting)" || Gallery_Expenses.Selected.Status.Value = "Awaiting 2nd Approval (Manager)" || Gallery_Expenses.Selected.Status.Value = "Awaiting 3rd Approval (CFO)" || Gallery_Expenses.Selected.Status.Value = "Fully approved" || Gallery_Expenses.Selected.Status.Value = "Booked" )&& User().Email = Gallery_Expenses.Selected.'Created By'.Email,
false,
If(
'Form_View/Edit'.DisplayMode = DisplayMode.View && (Gallery_Expenses.Selected.Status.Value = "Awaiting 1st Approval (Accounting)" || Gallery_Expenses.Selected.Status.Value = "Awaiting 2nd Approval (Manager)" || Gallery_Expenses.Selected.Status.Value = "Awaiting 3rd Approval (CFO)" || Gallery_Expenses.Selected.Status.Value = "Fully approved" || Gallery_Expenses.Selected.Status.Value = "Booked" )&& User().Email <> Gallery_Expenses.Selected.'Created By'.Email,
true,
If(
'Form_View/Edit'.DisplayMode = DisplayMode.View && (Gallery_Expenses.Selected.Status.Value <> "Draft" || Gallery_Expenses.Selected.Status.Value <> "Declined by Accounting" || Gallery_Expenses.Selected.Status.Value <> "Declined by Manager" || Gallery_Expenses.Selected.Status.Value <> "Declined by CFO" )&& User().Email = Gallery_Expenses.Selected.'Created By'.Email,
false,
If(
'Form_View/Edit'.DisplayMode = DisplayMode.View && (Gallery_Expenses.Selected.Status.Value <> "Draft" || Gallery_Expenses.Selected.Status.Value <> "Declined by Accounting" || Gallery_Expenses.Selected.Status.Value <> "Declined by Manager" || Gallery_Expenses.Selected.Status.Value <> "Declined by CFO" )&& User().Email <> Gallery_Expenses.Selected.'Created By'.Email,
true,
false
)
)
)
)
)
)