To check premissions for other groups

Started by Joker™, September 28, 2010, 04:36:47 AM

Previous topic - Next topic

Joker™

Permission for Website url in Profile, 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 :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: