Problem
As NewDot has been primarly built with Free plan in mind, that expects only one admin per policy. This means that as we are now getting to more convoluted usecases of paid plans which have multiple admins, some features were limited only for policy owners hence other admins cant take action. For example the entire workspace settings is not visible for them
Why is it important
Any admin should be able to take actions updating the workspace settings
Solution
Change the logic to check for policy admin instead of policy owner
cc @JmillsExpensify @Beamanator
Problem
As NewDot has been primarly built with Free plan in mind, that expects only one admin per policy. This means that as we are now getting to more convoluted usecases of paid plans which have multiple admins, some features were limited only for policy owners hence other admins cant take action. For example the entire workspace settings is not visible for them
Why is it important
Any admin should be able to take actions updating the workspace settings
Solution
Change the logic to check for policy admin instead of policy owner
cc @JmillsExpensify @Beamanator