how to restrict some user actions while API is permitted

tincboy

Verified User
Joined
Aug 14, 2009
Messages
126
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?
 
The API command sent to DA Panel should also call the _pre _post scripts, dont them?

If yes, i should have missunderstood what you mean and where is your problem.

Regards
 
They will trigger the _pre _post scripts, and it's OK with me,
But my question is, How can I restrict my clients to not do some functions via DirectAdmin while I can do them via API ?
 
Back
Top