I'm using many _pre.sh custom scripts to prevent users from making backups, restoring them or creating database , etc
But I want to be able to done these actions via API ( just admin user ), while these _pre.sh scripts are beigin called I can't achieve my aim with simple _pre.sh scripts,
Is there any way to find out if the request is from API not user interface?
But I want to be able to done these actions via API ( just admin user ), while these _pre.sh scripts are beigin called I can't achieve my aim with simple _pre.sh scripts,
Is there any way to find out if the request is from API not user interface?