HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Hide/Show Pocket Based on User Role
here is another way. <?php if (!defined('APPLICATION')) exit(); $PluginInfo['CheckRoleSmarty'] = array('Name' => 'Check Role Smarty','Description' => "create smarty function to be used in smarty template",'Version' => '1.0','MobileFriendly' => TRUE,'Author' => "Peregrine",);class CheckRoleSmartyPlugin extends Gdn_Plugin {… -
Re: Hide/Show Pocket Based on User Role
there is no "role" based permission statement. the easiest way is to find a permission setting that one role has vs. another role and play off the permission types. if "somerole" has a permission and another doesn't use that permission to check. or you could create new permission 'RegisterPermissions' =>… -
Re: Hide/Show Pocket Based on User Role
You are better off creating a plugin with a module for your adds and write it so if admin or an array of roles you can set up, then it returns nothing. It is sort of a reverse way of checking for permissions. Normally it would check to see if session is valid then show the content. Then by roles if permission x is the user…
3 results