Hello,
The apps i create, they need to only be accessible by certain groups of users.
How can I implement security functions into the app, (the entire apps, as well as parts of the app.
I know that i can do
if( $user->isViewer() )
{
print $content.
}
else
{
Echo "no access";
}
To hide it from other users, than the one that has installed it. But I want to do this whit the entire app.
And i prefer to do it outside the view, so if the criteria are not met, the app is hidden for the user logged in or the guest account viewing the profile of the user that have installed the app.