v.2.30
Добавлен расширенный отчет по реализации Добавлен монитор активности
This commit is contained in:
@@ -8,8 +8,8 @@ class StaffRights extends Model {
|
||||
protected $table = 'staff_rights';
|
||||
|
||||
public static function add($code, $name) {
|
||||
if (StaffRights::where('code', $code)->count() == 0) {
|
||||
$staffRight = new StaffRights([
|
||||
if (self::where('code', $code)->count() == 0) {
|
||||
$staffRight = new self([
|
||||
'code' => $code,
|
||||
'name' => $name,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user