View Full Version : Ban Email and Close action not working!
ssozonoff
01-22-2008, 03:53 PM
Hi All,
I tried the Ban Email and Close action and it seems to call a non existing function.
Here is what I see in the logs.
PHP Fatal error: Call to undefined method StaffSession::canManageBanList() in /var/www2/osticket/scp/tickets.php on line 221
Thanks,
Serge
As far as I can see now, it works on my system. But I also noticed that the function canManageBanList() is no where to be found. So that would explain you error.
But what does your system do when you do a "Ban email and close" action? Do you get an error on the screen or anything?
ssozonoff
01-22-2008, 08:44 PM
Hi,
But what does your system do when you do a "Ban email and close" action? Do you get an error on the screen or anything?
It just displays a bank (white) screen.
Currently running v1.6 RC2
Serge
I just talked to Peter and found out this function will be back in RC3. It was probably deleted by accident.
This is the function you need:
function canManageBanList() {
return ($this->isadmin() || $this->isManager() || $this->udata['can_ban_emails'])?true:false;
}
Hopefully if you add this, it will work. Or you can wait for RC3 off course.
ssozonoff
01-22-2008, 09:00 PM
Hi,
Thanks, I will plug that in and see how it goes.
Serge