Author Topic: [MOD] - User access profile permission  (Read 20358 times)

0 Members and 1 Guest are viewing this topic.

Offline CanonInk

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] - User access profile permission
« Reply #15 on: April 08, 2008, 08:06:03 AM »
Did you try this modification: Is it possible to disallow blocked users to post comments on owner images with this mod?

I block no comment, but I changed some code in member.php on my site. This could be a solution :idea:

Locate:
Code: [Select]
if ($user_row = get_user_info($user_id)) {

Code: [Select]
if ($user_row['user_access_profile'] == 0 && $user_row['user_id'] != $user_info['user_id'] && $user_info['user_level'] != ADMIN && $user_info['user_level'] != USER){
      show_error_page($lang['user_access_profile_no_permission']);
      exit;
   }