Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -104,7 +104,8 @@ class _Reply extends \IPS\Content\Comment implements \IPS\Content\Hideable
|
||||
*/
|
||||
public function url( $action='find' )
|
||||
{
|
||||
if ( $action === 'find' )
|
||||
/* Status Posts and comments don't support get PrefComment */
|
||||
if ( $action === 'find' or $action === 'getPrefComment' )
|
||||
{
|
||||
return $this->item()->url();
|
||||
}
|
||||
@@ -173,8 +174,8 @@ class _Reply extends \IPS\Content\Comment implements \IPS\Content\Hideable
|
||||
{
|
||||
$member = $member ?: \IPS\Member::loggedIn();
|
||||
|
||||
/* Profile owner should always be able to delete */
|
||||
if ( $member->member_id == $this->item()->member_id )
|
||||
/* Can we delete our own status updates? */
|
||||
if ( $this->item()->canDelete() )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user