app-base: 0017971: Default ClearOS theme displays unavailable links
Migrated from: https://tracker.clearos.com/view.php?id=17971
Reported by: PBaldwin
The top navigation in the ClearOS 7 default theme is hard-coded:
- Dashboard
- Marketplace
- Support
These should only appear if the relevant apps (e.g. app-support) are installed. In minimalist or custom installs, these apps might not be installed.
BChambers: The theme has logic to add placeholders..the problem is back in the Authorization library, so I moved this to app-base.
public function check_acl($username, $url)
{
clearos_profile(__METHOD__, __LINE__);
// root - allow everything
//------------------------
if ($username === 'root') <---- This needs more validation to see if the route/controller exists.
return TRUE;