[pmwiki-devel] testing auth level in a recipe

2022-03-17 Thread Simon
I want to test the auth level of the page a recipe is on to restrict some output if it is not operating at admin or edit level I've seen CondAuth, but wonder if there is another way ngā mihi Simon ___ pmwiki-devel mailing list

Re: [pmwiki-devel] testing auth level in a recipe

2022-03-17 Thread Dominique Faure
Hi, The following code defines a markup variable that you may use in a test to render content accordingly: =8<- - - - - function PmWikiAuthLevel($pagename) { global $AuthLevels; SDV($AuthLevels, array('admin', 'edit', 'read')); foreach($AuthLevels as $level)