Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -47,7 +47,7 @@ class _alerts extends \IPS\Dispatcher\Controller
|
||||
{
|
||||
$alert = \IPS\core\Alerts\Alert::load( \IPS\Request::i()->id );
|
||||
|
||||
if( $alert->reply == 2 and $alert->author()->member_id )
|
||||
if( $alert->reply == 2 and \IPS\Member::loggedIn()->member_id and \IPS\Member::loggedIn()->canUseMessenger() )
|
||||
{
|
||||
\IPS\Output::i()->error( 'alert_cant_dismiss', '3C428/1', 403, '' );
|
||||
}
|
||||
@@ -59,4 +59,16 @@ class _alerts extends \IPS\Dispatcher\Controller
|
||||
/* Redirect */
|
||||
\IPS\Output::i()->redirect( base64_decode( \IPS\Request::i()->ref ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set currently filtering alert and redirect
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function viewReplies()
|
||||
{
|
||||
\IPS\core\Alerts\Alert::setAlertCurrentlyFilteringMessages( \IPS\core\Alerts\Alert::load( \IPS\Request::i()->id ) );
|
||||
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal('app=core&module=messaging&controller=messenger&overview=1') );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user