Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

+24 -1
View File
@@ -113,7 +113,8 @@ class _File extends \IPS\Content\Item implements
'edit_member_name' => 'edit_name',
'edit_show' => 'append_edit',
'edit_reason' => 'edit_reason',
'is_anon' => 'is_anon'
'is_anon' => 'is_anon',
'last_comment_anon' => 'last_comment_anon'
);
/**
@@ -2416,6 +2417,7 @@ class _File extends \IPS\Content\Item implements
$this->_primaryScreenshotThumb = FALSE;
$this->syncTopic();
}
\IPS\Api\Webhook::fire( 'downloads_new_version', array( $this ) );
}
/* !Embeddable */
@@ -2740,4 +2742,25 @@ class _File extends \IPS\Content\Item implements
return parent::modAction( $action, $member, $reason, $immediately );
}
/**
* Can the member delete the pending version
*
* @param \IPS\Member|NULL $member
* @return bool
*/
public function canDeletePendingVersion( \IPS\Member $member = NULL): bool
{
if( !$this->hasPendingVersion() )
{
return FALSE;
}
if( $this->canEdit($member) )
{
return TRUE;
}
return FALSE;
}
}