I needed to restrict visability of some custom links in home page to a specific USER.
USER is memmebr of a GROUP that I didn't want to show links to.
Actually Appgini allow this restriction by GROUP.
Solution is very easy:
What you can do, if you need this, you can add
Code: Select all
'users' => array('user1', 'users'), // array of users allowed to see the custom link
and change the following in the incCommon.php file (get_home_links function // arround line 1300)
Code: Select all
if($memberInfo['admin'] || @in_array($memberInfo['group'], $link['groups']) || @in_array('*', $link['groups'])){
Code: Select all
if($memberInfo['admin'] || @in_array($memberInfo['group'], $link['groups']) || @in_array('*', $link['groups']) || @in_array($memberInfo['username'], $link['users'])){
Of course this change will be overwritten every time application is recreated/published.