Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -53,6 +53,13 @@ class _Conversation extends \IPS\Content\Item
|
||||
* @brief [Content\Comment] Icon
|
||||
*/
|
||||
public static $icon = 'envelope';
|
||||
|
||||
/**
|
||||
* Should IndexNow be skipped for this item? Can be used to prevent that Private Messages,
|
||||
* Reports and other content which is never going to be visible to guests is triggering the requests.
|
||||
* @var bool
|
||||
*/
|
||||
public static bool $skipIndexNow = TRUE;
|
||||
|
||||
/**
|
||||
* Delete Record
|
||||
@@ -146,6 +153,22 @@ class _Conversation extends \IPS\Content\Item
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* If this conversation is associated with an alert, skip the
|
||||
rest of the permission checks, the user should be able to reply */
|
||||
if ( isset( \IPS\Request::i()->alert ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
$alert = \IPS\core\Alerts\Alert::load( \IPS\Request::i()->alert );
|
||||
|
||||
if( $alert->forMember( \IPS\Member::loggedIn() ) AND $alert->reply == 2 )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
catch ( \OutOfRangeException $e ) {}
|
||||
}
|
||||
|
||||
/* Have we exceeded our limit for the day/minute? */
|
||||
if ( $member->group['g_pm_perday'] !== -1 )
|
||||
|
||||
Reference in new issue
Block a user