It might not be very light solution but it might be much more straightforward approach to load WP core and use current_user_can()
and related stuff for determining user permissions.
It might not be very light solution but it might be much more straightforward approach to load WP core and use current_user_can()
and related stuff for determining user permissions.