UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Applications

Jostein Rosenlund · ·
11:23 AM Monday, 30 December 2013
None
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.
The replies under this section are restricted to logged in users or users with an active subscription with us