public function pluginEnable() { ob_start(); $try = FannieAuth::createClass('timesheet_access', 'Grants user permission to use the Timesheet plugin'); ob_end_clean(); if ($try === False) { echo 'Failed to create authentication class. Make sure authentication is enabled in Fannie and you\'re logged in as an admin then try turning Timesheet on and off again'; } }
public function pluginEnable() { FannieAuth::createClass('GiveUsMoney', 'Grants permission to use the GiveUsMoney plugin'); }