Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions migrations/m230606_120121_change_access_owner_col_format.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

use yii\db\Migration;

class m230606_120121_change_access_owner_col_format extends Migration
{
public function up()
{
// allow uuid and longer strings as access_owner value
$this->alterColumn("{{%dmstr_page}}", "access_owner", $this->string(255));
}

public function down()
{
return false;
}
}
10 changes: 8 additions & 2 deletions models/BaseTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ public function rules()
'{0} should not contain any uppercase and special chars!', ['{attribute}']
)
],
[
[
self::ATTR_ACCESS_OWNER,
],
'filter',
'filter' => 'strval'
],
[
[
self::ATTR_DOMAIN_ID,
Expand All @@ -467,6 +474,7 @@ public function rules()
self::ATTR_ICON,
self::ATTR_DEFAULT_META_KEYWORDS,
self::ATTR_REQUEST_PARAMS,
self::ATTR_ACCESS_OWNER,
self::ATTR_ACCESS_READ,
self::ATTR_ACCESS_UPDATE,
self::ATTR_ACCESS_DELETE,
Expand Down Expand Up @@ -522,15 +530,13 @@ public function rules()
[
[
self::ATTR_ROOT,
self::ATTR_ACCESS_OWNER,
],
'integer',
'integerOnly' => true,
],
[
[
self::ATTR_ROOT,
self::ATTR_ACCESS_OWNER,
self::ATTR_COLLAPSED,
self::ATTR_ICON_TYPE
],
Expand Down
2 changes: 1 addition & 1 deletion models/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @property string $default_meta_keywords
* @property string $default_meta_description
* @property string $request_params
* @property int $access_owner
* @property string $access_owner
* @property string $access_domain
* @property string $access_read
* @property string $access_update
Expand Down