2026-06-02 20:54:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace RomhackPlaza\Master\XF\Entity;
|
|
|
|
|
|
|
|
|
|
use XF\Mvc\Entity\Structure;
|
|
|
|
|
use XF\Mvc\Entity\Entity;
|
|
|
|
|
|
|
|
|
|
class User extends XFCP_User
|
|
|
|
|
{
|
|
|
|
|
public static function getStructure(Structure $structure): Structure
|
|
|
|
|
{
|
|
|
|
|
$structure = parent::getStructure($structure);
|
|
|
|
|
|
|
|
|
|
$structure->columns['rhpz_entry_count'] = [ 'type' => self::UINT, 'default' => 0 ];
|
|
|
|
|
|
|
|
|
|
return $structure;
|
|
|
|
|
}
|
2026-06-16 16:21:43 +02:00
|
|
|
|
|
|
|
|
public function canCreateEntry()
|
|
|
|
|
{
|
|
|
|
|
return \XF::visitor()->hasPermission('romhackplaza', 'canSubmitEntry');
|
|
|
|
|
}
|
2026-06-02 20:54:08 +02:00
|
|
|
}
|