Permission for Website url in Profile (http://custom.simplemachines.org/mods/index.php?mod=2750), this mod has a bit of bug left in it and it's much more tricky than i anticipated. Bug starts if a member has website already in his/her profile prior to installation of mod.
Bug is - If a member has no regular group , only having a post group , then he can see website link of those group members also who don't have permission to show there websites .
In Load.php code is
'website' => (!empty($context['enable_website_url']) || !$profile['member_group']) ? array(
'title' => $profile['website_title'],
'url' => $profile['website_url'],
) : array('title' => '', 'url' =>''),
I was making it
'website' => (!empty($context['enable_website_url']) || $user_info['id'] != $user) ? array(
'title' => $profile['website_title'],
'url' => $profile['website_url'],
) : array('title' => '', 'url' =>''),
The above code checks whether the permission is true or it is other user profile. Now i want to associate permission there with other user profile like
$user_info['id'] != $user(allowedTo('add_website'))
I know this won't work but i wrote here just to show what i'm trying to do. Can anyone help me in removing this bug :).