OpenCATS 0.9.4-3

Free, Open-Source Applicant Tracking System including job-board. Entirely customisable!

General discussion of OpenCATS

Moderators: RussH, cptr13

Forum rules: Just remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but keep comments directed to the topic at hand.
By rexwal
#3475
Hi,

Just was playing around with OpenCats to see if I can turn off / on tabs for different permissions. This is a way for tabs not to appear (but users may still access them)

At any time - you can get the permission of the logged in user with $loggedInAccessLevel = $_SESSION['CATS']->getRealAccessLevel();
Real Access level returns the logged in user access:, Read Only - 100, Add / Edit - 200, Add / Edit / Delete (Default) - 300, Site Administrator - 400, Root - 500

Adding this code to printTabs in TemplateUtility.php in the foreach ($modules as $moduleName => $parameters) loop will hide certain tabs if a user does not meet the appropriate permissions. Module names are: home, activity, joborders, candidates, companies, contacts, lists, calendar, reports, settings

$loggedInAccessLevel = $_SESSION['CATS']->getRealAccessLevel();
$minimumAccessLevel = array ("lists" => 400, "companies" => 400);
if (array_key_exists($moduleName, $minimumAccessLevel)) {
if ($loggedInAccessLevel < $minimumAccessLevel[$moduleName])
{
continue; //Disabling module for the user by not showing it - if they do not have the minium access level
}
}
User avatar
By RussH
#3569
Thank you! I will ask that this is added into the documentation :-)
By skrchnavy
#3582
Hi.

Please check https://github.com/opencats/OpenCATS/wi ... trol-Lists, there is explained ACL.
In some pages, there is a check for 'calculated''access level and required access level, if added into all pages (modules), then it shall be easy to hide menu an also to protect backend functionality. (hiding menu just don't show page to user but it is easy to construct get request to change values).

Sveto.
PHP.ini Issue on install

I see. By the way this is hosted server . I al[…]

you restarted apache, too? (Sorry - have to cover […]

test post

They do look a bit nicer now! Let me know if you f[…]

Hi ChrisP Hi Chrisp, Sphinx is the recommended fu[…]

You can run composer through some shared hosts. I[…]

OpenCats responsible?

By customizing your own template (css etc.) under […]

In the template adjustment there is the area "[…]

Just Installed

Hi JorgePHP, sorry a slight quirk with current v[…]

Make CV upload required

Hi, this code here https://github.com/opencats/O[…]

Unable to upload CVs

Hi sorry have taken a look at the thread, and yo[…]

After applying the fix that was recommended it app[…]

pooling of interview times

You're welcome!