Current time: 08-01-2014, 03:53 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Admin override not work
09-10-2008, 09:40 PM
Post: #1
[F] Admin override not work
If $user['receivepms'] == 0 then administrators can't send pm to user!
I think "inc/datahandlers/pm.php" must have this change:

Now is:
PHP Code:
            // See if the sender is on the recipients ignore list and that either
            // - admin_override is set or
            // - sender is an administrator
            
if($this->admin_override != true && $sender_permissions['cancp'] != 1)
            {
                
$ignorelist explode(","$user['ignorelist']);
                foreach(
$ignorelist as $uid)
                {
                    if(
$uid == $pm['fromid'])
                    {
                        
$this->set_error("recipient_is_ignoring", array($user['username']));
                    }
                }
            }
    
            
// Can the recipient actually receive private messages based on their permissions or user setting?
            
if($user['receivepms'] == || $recipient_permissions['canusepms'] == && !$pm['saveasdraft'])
            {
                
$this->set_error("recipient_pms_disabled", array($user['username']));
                return 
false;
            } 

After change will be: (as a suggestion)
PHP Code:
            // See if the sender is on the recipients ignore list and that either
            // - admin_override is set or
            // - sender is an administrator
            
if($this->admin_override != true && $sender_permissions['cancp'] != 1)
            {
                
$ignorelist explode(","$user['ignorelist']);
                foreach(
$ignorelist as $uid)
                {
                    if(
$uid == $pm['fromid'])
                    {
                        
$this->set_error("recipient_is_ignoring", array($user['username']));
                    }
                }

                
// Can the recipient actually receive private messages based on their permissions or user setting?
                
if($user['receivepms'] == || $recipient_permissions['canusepms'] == && !$pm['saveasdraft'])
                {
                    
$this->set_error("recipient_pms_disabled", array($user['username']));
                    return 
false;
                }
            } 
Find all posts by this user
09-11-2008, 12:26 AM
Post: #2
[F] Admin override not work
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication