[pmwiki-users] Check for admin inside a handler

Carlos AB cabsec.pmwiki at gmail.com
Fri Aug 20 18:31:46 CDT 2010


I'm doing a recipe which is an action and I have to check if the user is admin.

I did this so far:

$HandleActions['csscompress'] = 'HandleCssCompress';
$HandleAuth['csscompress'] = 'admin';

function HandleCssCompress($pagename,$auth='admin'){
  global $CssCompressOverWrite,$CssCompressFiles,

but inside the function I don't have to open any files.

Is there a way?


More information about the pmwiki-users mailing list