Plugin development: Read out user settings / limits

kevinbentlage

Verified User
Joined
Jul 15, 2013
Messages
13
Hi All,

I am currently busy developing some plugins for DirectAdmin.

Now I have a plugin for managing SSH keys on user level. This works. But I want that users can only use this plugin when the user has "SSH access" on "ON". I tried to read out the /usr/local/directadmin/data/USERNAME/user.conf, but the current user has no permissions to open this file (it's owned by diradmin.diradmin).

My question is, how can i read out user settings / limits for the current user inside a plugin?

Thanks in advance!
 
Back
Top