From 322f4f47f789311754e2ca9c5ddce9d5c25dedab Mon Sep 17 00:00:00 2001 From: kato Date: Mon, 15 Jun 2026 19:55:15 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#4421=20=E3=80=90=E3=82=B7=E3=82=B9?= =?UTF-8?q?=E3=83=86=E3=83=A0=E3=80=91=E3=83=91=E3=83=BC=E3=83=9F=E3=83=83?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AE=E5=88=9D=E6=9C=9F=E5=80=A4?= =?UTF-8?q?=E3=81=8C/baser/admin/~=E3=81=A7=E5=9B=BA=E5=AE=9A=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E8=A7=A3=E6=B1=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/Seeds/PermissionsSeed.php | 26 +- plugins/baser-core/config/permission.php | 300 +++++++++--------- 2 files changed, 169 insertions(+), 157 deletions(-) diff --git a/plugins/baser-core/config/Seeds/PermissionsSeed.php b/plugins/baser-core/config/Seeds/PermissionsSeed.php index f6194d5400..f78839496c 100644 --- a/plugins/baser-core/config/Seeds/PermissionsSeed.php +++ b/plugins/baser-core/config/Seeds/PermissionsSeed.php @@ -20,6 +20,10 @@ class PermissionsSeed extends BcSeed */ public function run(): void { + $baserCorePrefix = trim((string) env('BASER_CORE_PREFIX', 'baser'), '/'); + $adminPrefix = trim((string) env('ADMIN_PREFIX', 'admin'), '/'); + $adminUrlPrefix = '/' . $baserCorePrefix . '/' . $adminPrefix; + $data = [ [ 'id' => 1, @@ -27,7 +31,7 @@ public function run(): void 'sort' => 1, 'name' => 'システム管理', 'user_group_id' => 2, - 'url' => '/baser/admin/*', + 'url' => $adminUrlPrefix . '/*', 'auth' => 0, 'status' => 1, 'created' => NULL, @@ -40,7 +44,7 @@ public function run(): void 'sort' => 2, 'name' => 'ページ管理', 'user_group_id' => 2, - 'url' => '/baser/admin/baser-core/pages/*', + 'url' => $adminUrlPrefix . '/baser-core/pages/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -53,7 +57,7 @@ public function run(): void 'sort' => 3, 'name' => '新着情報記事管理', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-blog/blog_posts/*', + 'url' => $adminUrlPrefix . '/bc-blog/blog_posts/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -66,7 +70,7 @@ public function run(): void 'sort' => 4, 'name' => '新着情報カテゴリ管理', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-blog/blog_categories/*', + 'url' => $adminUrlPrefix . '/bc-blog/blog_categories/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -79,7 +83,7 @@ public function run(): void 'sort' => 5, 'name' => '新着情報コメント一覧', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-blog/blog_comments/*', + 'url' => $adminUrlPrefix . '/bc-blog/blog_comments/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -92,7 +96,7 @@ public function run(): void 'sort' => 6, 'name' => 'ブログタグ管理', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-blog/blog_tags/*', + 'url' => $adminUrlPrefix . '/bc-blog/blog_tags/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -105,7 +109,7 @@ public function run(): void 'sort' => 7, 'name' => 'お問い合わせ管理', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-mail/mail_fields/*', + 'url' => $adminUrlPrefix . '/bc-mail/mail_fields/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -118,7 +122,7 @@ public function run(): void 'sort' => 8, 'name' => 'お問い合わせ受信メール一覧', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-mail/mail_messages/*', + 'url' => $adminUrlPrefix . '/bc-mail/mail_messages/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -131,7 +135,7 @@ public function run(): void 'sort' => 9, 'name' => 'アップローダー', 'user_group_id' => 2, - 'url' => '/baser/admin/bc-uploader/*', + 'url' => $adminUrlPrefix . '/bc-uploader/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -144,7 +148,7 @@ public function run(): void 'sort' => 10, 'name' => 'コンテンツ管理', 'user_group_id' => 2, - 'url' => '/baser/admin/baser-core/contents/*', + 'url' => $adminUrlPrefix . '/baser-core/contents/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', @@ -157,7 +161,7 @@ public function run(): void 'sort' => 11, 'name' => 'リンク管理', 'user_group_id' => 2, - 'url' => '/baser/admin/baser-core/content_links/*', + 'url' => $adminUrlPrefix . '/baser-core/content_links/*', 'auth' => 1, 'status' => 1, 'method' => 'ALL', diff --git a/plugins/baser-core/config/permission.php b/plugins/baser-core/config/permission.php index a8d558e2cc..7bf1e5e317 100644 --- a/plugins/baser-core/config/permission.php +++ b/plugins/baser-core/config/permission.php @@ -12,7 +12,13 @@ /** * アクセスルール初期値 */ -return [ +$baserCorePrefix = trim((string) env('BASER_CORE_PREFIX', 'baser'), '/'); +$adminPrefix = trim((string) env('ADMIN_PREFIX', 'admin'), '/'); +$apiPrefix = trim((string) env('API_PREFIX', 'api'), '/'); +$adminUrlPrefix = '/' . $baserCorePrefix . '/' . $adminPrefix; +$apiAdminUrlPrefix = '/' . $baserCorePrefix . '/' . $apiPrefix . '/' . $adminPrefix; + +$permissions = [ 'permission' => [ /** @@ -23,7 +29,7 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/content_folders/edit/*', 'method' => 'POST', 'auth' => true] + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/content_folders/edit/*', 'method' => 'POST', 'auth' => true] ] ], @@ -32,12 +38,12 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/contents/index', 'method' => '*', 'auth' => true], - 'Add' => ['title' => __d('baser_core', '登録'), 'url' => '/baser/admin/baser-core/contents/add', 'method' => '*', 'auth' => true], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/admin/baser-core/contents/delete', 'method' => '*', 'auth' => true], - 'Edit' => ['title' => __d('baser_core', 'ゴミ箱'), 'url' => '/baser/admin/baser-core/contents/trash_index', 'method' => 'GET', 'auth' => true], - 'EditAlias' => ['title' => __d('baser_core', 'エイリアス編集'), 'url' => '/baser/admin/baser-core/contents/edit_alias/*', 'method' => 'POST', 'auth' => true], - 'TrashReturn' => ['title' => __d('baser_core', 'ゴミ箱から戻す'), 'method' => 'POST', 'url' => '/baser/admin/baser-core/contents/trash_return/*', 'auth' => true], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/contents/index', 'method' => '*', 'auth' => true], + 'Add' => ['title' => __d('baser_core', '登録'), 'url' => $adminUrlPrefix . '/baser-core/contents/add', 'method' => '*', 'auth' => true], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $adminUrlPrefix . '/baser-core/contents/delete', 'method' => '*', 'auth' => true], + 'Edit' => ['title' => __d('baser_core', 'ゴミ箱'), 'url' => $adminUrlPrefix . '/baser-core/contents/trash_index', 'method' => 'GET', 'auth' => true], + 'EditAlias' => ['title' => __d('baser_core', 'エイリアス編集'), 'url' => $adminUrlPrefix . '/baser-core/contents/edit_alias/*', 'method' => 'POST', 'auth' => true], + 'TrashReturn' => ['title' => __d('baser_core', 'ゴミ箱から戻す'), 'method' => 'POST', 'url' => $adminUrlPrefix . '/baser-core/contents/trash_return/*', 'auth' => true], ] ], @@ -46,7 +52,7 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/pages/edit/*', 'method' => 'POST', 'auth' => true] + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/pages/edit/*', 'method' => 'POST', 'auth' => true] ] ], @@ -55,9 +61,9 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/permission_groups/index/*', 'method' => '*', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/permission_groups/edit/*', 'method' => 'POST', 'auth' => false], - 'RebuildByUserGroup' => ['title' => __d('baser_core', 'ルール再構築'), 'url' => '/baser/admin/baser-core/permission_groups/rebuild_by_user_group/*', 'method' => 'POST', 'auth' => false] + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/permission_groups/index/*', 'method' => '*', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/permission_groups/edit/*', 'method' => 'POST', 'auth' => false], + 'RebuildByUserGroup' => ['title' => __d('baser_core', 'ルール再構築'), 'url' => $adminUrlPrefix . '/baser-core/permission_groups/rebuild_by_user_group/*', 'method' => 'POST', 'auth' => false] ] ], @@ -66,13 +72,13 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/permissions/index/*', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/admin/baser-core/permissions/add/*', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/permissions/edit/*', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/admin/baser-core/permissions/delete/*', 'method' => 'POST', 'auth' => false], - 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/admin/baser-core/permissions/copy/*', 'method' => 'POST', 'auth' => false], - 'Publish' => ['title' => __d('baser_core', '公開設定'), 'url' => '/baser/admin/baser-core/permissions/publish/*', 'method' => 'POST', 'auth' => false], - 'Unpublish' => ['title' => __d('baser_core', '非公開設定'), 'url' => '/baser/admin/baser-core/permissions/unpublish/*', 'method' => 'POST', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/permissions/index/*', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $adminUrlPrefix . '/baser-core/permissions/add/*', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/permissions/edit/*', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $adminUrlPrefix . '/baser-core/permissions/delete/*', 'method' => 'POST', 'auth' => false], + 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $adminUrlPrefix . '/baser-core/permissions/copy/*', 'method' => 'POST', 'auth' => false], + 'Publish' => ['title' => __d('baser_core', '公開設定'), 'url' => $adminUrlPrefix . '/baser-core/permissions/publish/*', 'method' => 'POST', 'auth' => false], + 'Unpublish' => ['title' => __d('baser_core', '非公開設定'), 'url' => $adminUrlPrefix . '/baser-core/permissions/unpublish/*', 'method' => 'POST', 'auth' => false], ] ], @@ -81,14 +87,14 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/plugins/index/*', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '登録'), 'url' => '/baser/admin/baser-core/plugins/add', 'method' => 'POST', 'auth' => false], - 'GetMarketPlugins' => ['title' => __d('baser_core', 'マーケットのプラグインを取得'), 'url' => '/baser/admin/baser-core/plugins/get_market_plugins', 'method' => 'GET', 'auth' => false], - 'Detach' => ['title' => __d('baser_core', '無効化'), 'url' => '/baser/admin/baser-core/plugins/detach/*', 'method' => 'POST', 'auth' => false], - 'Install' => ['title' => __d('baser_core', 'インストール'), 'url' => '/baser/admin/baser-core/plugins/install/*', 'method' => 'POST', 'auth' => false], - 'ResetDb' => ['title' => __d('baser_core', 'データベース初期化'), 'url' => '/baser/admin/baser-core/plugins/reset_db', 'method' => 'POST', 'auth' => false], - 'Uninstall' => ['title' => __d('baser_core', 'アンインストール'), 'url' => '/baser/admin/baser-core/plugins/uninstall/*', 'method' => 'POST', 'auth' => false], - 'Update' => ['title' => __d('baser_core', 'アップデート'), 'url' => '/baser/admin/baser-core/plugins/update/*', 'method' => 'POST', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/plugins/index/*', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '登録'), 'url' => $adminUrlPrefix . '/baser-core/plugins/add', 'method' => 'POST', 'auth' => false], + 'GetMarketPlugins' => ['title' => __d('baser_core', 'マーケットのプラグインを取得'), 'url' => $adminUrlPrefix . '/baser-core/plugins/get_market_plugins', 'method' => 'GET', 'auth' => false], + 'Detach' => ['title' => __d('baser_core', '無効化'), 'url' => $adminUrlPrefix . '/baser-core/plugins/detach/*', 'method' => 'POST', 'auth' => false], + 'Install' => ['title' => __d('baser_core', 'インストール'), 'url' => $adminUrlPrefix . '/baser-core/plugins/install/*', 'method' => 'POST', 'auth' => false], + 'ResetDb' => ['title' => __d('baser_core', 'データベース初期化'), 'url' => $adminUrlPrefix . '/baser-core/plugins/reset_db', 'method' => 'POST', 'auth' => false], + 'Uninstall' => ['title' => __d('baser_core', 'アンインストール'), 'url' => $adminUrlPrefix . '/baser-core/plugins/uninstall/*', 'method' => 'POST', 'auth' => false], + 'Update' => ['title' => __d('baser_core', 'アップデート'), 'url' => $adminUrlPrefix . '/baser-core/plugins/update/*', 'method' => 'POST', 'auth' => false], ] ], @@ -97,7 +103,7 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/site_configs/index', 'method' => 'POST', 'auth' => false] + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/site_configs/index', 'method' => 'POST', 'auth' => false] ] ], @@ -106,12 +112,12 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/sites/index', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/admin/baser-core/sites/add', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/sites/edit/*', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/admin/baser-core/sites/delete/*', 'method' => 'POST', 'auth' => false], - 'Publish' => ['title' => __d('baser_core', '公開設定'), 'url' => '/baser/admin/baser-core/sites/publish/*', 'method' => 'POST', 'auth' => false], - 'Unpublish' => ['title' => __d('baser_core', '非公開設定'), 'url' => '/baser/admin/baser-core/sites/unpublish/*', 'method' => 'POST', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/sites/index', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $adminUrlPrefix . '/baser-core/sites/add', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/sites/edit/*', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $adminUrlPrefix . '/baser-core/sites/delete/*', 'method' => 'POST', 'auth' => false], + 'Publish' => ['title' => __d('baser_core', '公開設定'), 'url' => $adminUrlPrefix . '/baser-core/sites/publish/*', 'method' => 'POST', 'auth' => false], + 'Unpublish' => ['title' => __d('baser_core', '非公開設定'), 'url' => $adminUrlPrefix . '/baser-core/sites/unpublish/*', 'method' => 'POST', 'auth' => false], ] ], @@ -120,15 +126,15 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/themes/index', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/admin/baser-core/themes/add', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/admin/baser-core/themes/delete/*', 'method' => 'POST', 'auth' => false], - 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/admin/baser-core/themes/copy/*', 'method' => 'POST', 'auth' => false], - 'Apply' => ['title' => __d('baser_core', '適用'), 'url' => '/baser/admin/baser-core/themes/apply/*', 'method' => 'POST', 'auth' => false], - 'download' => ['title' => __d('baser_core', 'ダウンロード'), 'url' => '/baser/admin/baser-core/themes/download/*', 'method' => 'GET', 'auth' => false], - 'download_default_data_pattern' => ['title' => __d('baser_core', '初期データダウンロード'), 'url' => '/baser/admin/baser-core/themes/download_default_data_pattern', 'method' => 'GET', 'auth' => false], - 'get_market_themes' => ['title' => __d('baser_core', 'マーケットのテーマ取得'), 'url' => '/baser/admin/baser-core/themes/get_market_themes', 'method' => 'GET', 'auth' => false], - 'screenshot' => ['title' => __d('baser_core', 'スクリーンショット'), 'url' => '/baser/admin/baser-core/themes/screenshot/*', 'method' => 'GET', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/themes/index', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $adminUrlPrefix . '/baser-core/themes/add', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $adminUrlPrefix . '/baser-core/themes/delete/*', 'method' => 'POST', 'auth' => false], + 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $adminUrlPrefix . '/baser-core/themes/copy/*', 'method' => 'POST', 'auth' => false], + 'Apply' => ['title' => __d('baser_core', '適用'), 'url' => $adminUrlPrefix . '/baser-core/themes/apply/*', 'method' => 'POST', 'auth' => false], + 'download' => ['title' => __d('baser_core', 'ダウンロード'), 'url' => $adminUrlPrefix . '/baser-core/themes/download/*', 'method' => 'GET', 'auth' => false], + 'download_default_data_pattern' => ['title' => __d('baser_core', '初期データダウンロード'), 'url' => $adminUrlPrefix . '/baser-core/themes/download_default_data_pattern', 'method' => 'GET', 'auth' => false], + 'get_market_themes' => ['title' => __d('baser_core', 'マーケットのテーマ取得'), 'url' => $adminUrlPrefix . '/baser-core/themes/get_market_themes', 'method' => 'GET', 'auth' => false], + 'screenshot' => ['title' => __d('baser_core', 'スクリーンショット'), 'url' => $adminUrlPrefix . '/baser-core/themes/screenshot/*', 'method' => 'GET', 'auth' => false], ] ], @@ -137,11 +143,11 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/user_groups/index', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/admin/baser-core/user_groups/add', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/user_groups/edit/*', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/admin/baser-core/user_groups/delete/*', 'method' => 'POST', 'auth' => false], - 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/admin/baser-core/user_groups/copy/*', 'method' => 'POST', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/user_groups/index', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $adminUrlPrefix . '/baser-core/user_groups/add', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/user_groups/edit/*', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $adminUrlPrefix . '/baser-core/user_groups/delete/*', 'method' => 'POST', 'auth' => false], + 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $adminUrlPrefix . '/baser-core/user_groups/copy/*', 'method' => 'POST', 'auth' => false], ] ], @@ -150,12 +156,12 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => '/baser/admin/baser-core/users/index', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/admin/baser-core/users/add', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/admin/baser-core/users/edit/*', 'method' => 'POST', 'auth' => false], - 'EditSelf' => ['title' => __d('baser_core', '自身の編集'), 'url' => '/baser/admin/baser-core/users/edit/{loginUserId}', 'method' => 'POST', 'auth' => true], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/admin/baser-core/users/delete/*', 'method' => 'POST', 'auth' => false], - 'LoginAgent' => ['title' => __d('baser_core', '代理ログイン'), 'method' => 'POST', 'url' => '/baser/admin/baser-core/users/login_agent/*', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧'), 'url' => $adminUrlPrefix . '/baser-core/users/index', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $adminUrlPrefix . '/baser-core/users/add', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $adminUrlPrefix . '/baser-core/users/edit/*', 'method' => 'POST', 'auth' => false], + 'EditSelf' => ['title' => __d('baser_core', '自身の編集'), 'url' => $adminUrlPrefix . '/baser-core/users/edit/{loginUserId}', 'method' => 'POST', 'auth' => true], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $adminUrlPrefix . '/baser-core/users/delete/*', 'method' => 'POST', 'auth' => false], + 'LoginAgent' => ['title' => __d('baser_core', '代理ログイン'), 'method' => 'POST', 'url' => $adminUrlPrefix . '/baser-core/users/login_agent/*', 'auth' => false], ] ], @@ -164,14 +170,14 @@ 'plugin' => 'BaserCore', 'type' => 'Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', 'トップ'), 'url' => '/baser/admin/baser-core/utilities/index', 'method' => 'GET', 'auth' => false], - 'ClearCache' => ['title' => __d('baser_core', 'キャッシュクリア'), 'url' => '/baser/admin/baser-core/utilities/clear_cache', 'method' => 'GET', 'auth' => true], - 'Credit' => ['title' => __d('baser_core', 'クレジット'), 'url' => '/baser/admin/baser-core/utilities/credit', 'method' => 'GET', 'auth' => true], - 'Info' => ['title' => __d('baser_core', '環境情報'), 'url' => '/baser/admin/baser-core/utilities/info', 'method' => 'GET', 'auth' => false], - 'LogMaintenance' => ['title' => __d('baser_core', 'ログメンテナンス'), 'url' => '/baser/admin/baser-core/utilities/log_maintenance/*', 'method' => 'POST', 'auth' => false], - 'Phpinfo' => ['title' => __d('baser_core', 'PHPインフォ'), 'url' => '/baser/admin/baser-core/utilities/phpinfo', 'method' => 'GET', 'auth' => true], - 'ResetContentsTree' => ['title' => __d('baser_core', 'ツリー構造リセット', 'トップ'), 'url' => '/baser/admin/baser-core/utilities/reset_contents_tree', 'method' => 'POST', 'auth' => false], - 'VerityContents_tree' => ['title' => __d('baser_core', 'ツリー構造チェック'), 'url' => '/baser/admin/baser-core/utilities/verity_contents_tree', 'method' => 'POST', 'auth' => false], + 'Index' => ['title' => __d('baser_core', 'トップ'), 'url' => $adminUrlPrefix . '/baser-core/utilities/index', 'method' => 'GET', 'auth' => false], + 'ClearCache' => ['title' => __d('baser_core', 'キャッシュクリア'), 'url' => $adminUrlPrefix . '/baser-core/utilities/clear_cache', 'method' => 'GET', 'auth' => true], + 'Credit' => ['title' => __d('baser_core', 'クレジット'), 'url' => $adminUrlPrefix . '/baser-core/utilities/credit', 'method' => 'GET', 'auth' => true], + 'Info' => ['title' => __d('baser_core', '環境情報'), 'url' => $adminUrlPrefix . '/baser-core/utilities/info', 'method' => 'GET', 'auth' => false], + 'LogMaintenance' => ['title' => __d('baser_core', 'ログメンテナンス'), 'url' => $adminUrlPrefix . '/baser-core/utilities/log_maintenance/*', 'method' => 'POST', 'auth' => false], + 'Phpinfo' => ['title' => __d('baser_core', 'PHPインフォ'), 'url' => $adminUrlPrefix . '/baser-core/utilities/phpinfo', 'method' => 'GET', 'auth' => true], + 'ResetContentsTree' => ['title' => __d('baser_core', 'ツリー構造リセット', 'トップ'), 'url' => $adminUrlPrefix . '/baser-core/utilities/reset_contents_tree', 'method' => 'POST', 'auth' => false], + 'VerityContents_tree' => ['title' => __d('baser_core', 'ツリー構造チェック'), 'url' => $adminUrlPrefix . '/baser-core/utilities/verity_contents_tree', 'method' => 'POST', 'auth' => false], ] ], @@ -183,11 +189,11 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/content_folders/index.json', 'method' => '*', 'auth' => true], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/content_folders/view/*.json', 'method' => '*', 'auth' => true], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/content_folders/add.json', 'method' => 'POST', 'auth' => true], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/content_folders/edit/*.json', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/content_folders/delete/*.json', 'method' => 'POST', 'auth' => false] + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/content_folders/index.json', 'method' => '*', 'auth' => true], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/content_folders/view/*.json', 'method' => '*', 'auth' => true], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/content_folders/add.json', 'method' => 'POST', 'auth' => true], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/content_folders/edit/*.json', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/content_folders/delete/*.json', 'method' => 'POST', 'auth' => false] ] ], @@ -196,23 +202,23 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/contents/index.json', 'method' => '*', 'auth' => true], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/contents/view/*.json', 'method' => '*', 'auth' => true], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/contents/add.json', 'method' => 'POST', 'auth' => true], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/contents/edit/*.json', 'method' => 'POST', 'auth' => true], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/contents/delete/*.json', 'method' => 'POST', 'auth' => true], - 'AddAlias' => ['title' => __d('baser_core', 'エイリアス登録'), 'url' => '/baser/api/admin/baser-core/contents/add_alias.json', 'method' => 'POST', 'auth' => true], - 'Batch' => ['title' => __d('baser_core', 'バッチ処理'), 'url' => '/baser/api/admin/baser-core/contents/batch.json', 'method' => 'POST', 'auth' => true], - 'ChangeStatus' => ['title' => __d('baser_core', '公開状態変更'), 'url' => '/baser/api/admin/baser-core/contents/change_status.json', 'method' => 'POST', 'auth' => true], - 'Exists' => ['title' => __d('baser_core', '存在確認'), 'url' => '/baser/api/admin/baser-core/contents/exists/*.json', 'method' => 'GET', 'auth' => true], - 'GetContentFolder_list' => ['title' => __d('baser_core', 'フォルダ一覧取得'), 'url' => '/baser/api/admin/baser-core/contents/get_content_folder_list/*.json', 'method' => 'GET', 'auth' => true], - 'GetFullUrl' => ['title' => __d('baser_core', 'フルURL取得'), 'url' => '/baser/api/admin/baser-core/contents/get_full_url/*.json', 'method' => 'GET', 'auth' => true], - 'IsUniqueContent' => ['title' => __d('baser_core', '一意性チェック'), 'url' => '/baser/api/admin/baser-core/contents/is_unique_content.json', 'method' => 'POST', 'auth' => true], - 'Move' => ['title' => __d('baser_core', '移動'), 'url' => '/baser/api/admin/baser-core/contents/move.json', 'method' => 'POST', 'auth' => true], - 'Rename' => ['title' => __d('baser_core', 'リネーム'), 'url' => '/baser/api/admin/baser-core/contents/rename.json', 'method' => 'POST', 'auth' => true], - 'TrashEmpty' => ['title' => __d('baser_core', 'ゴミ箱を空にする'), 'url' => '/baser/api/admin/baser-core/contents/trash_empty.json', 'method' => 'POST', 'auth' => true], - 'TrashReturn' => ['title' => __d('baser_core', 'ゴミ箱から戻す'), 'url' => '/baser/api/admin/baser-core/contents/trash_return/*.json', 'method' => 'GET', 'auth' => true], - 'ViewTrash' => ['title' => __d('baser_core', 'ゴミ箱内一覧'), 'url' => '/baser/api/admin/baser-core/contents/view_trash/*.json', 'method' => '*', 'auth' => true], + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/index.json', 'method' => '*', 'auth' => true], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/view/*.json', 'method' => '*', 'auth' => true], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/add.json', 'method' => 'POST', 'auth' => true], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/edit/*.json', 'method' => 'POST', 'auth' => true], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/delete/*.json', 'method' => 'POST', 'auth' => true], + 'AddAlias' => ['title' => __d('baser_core', 'エイリアス登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/add_alias.json', 'method' => 'POST', 'auth' => true], + 'Batch' => ['title' => __d('baser_core', 'バッチ処理'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/batch.json', 'method' => 'POST', 'auth' => true], + 'ChangeStatus' => ['title' => __d('baser_core', '公開状態変更'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/change_status.json', 'method' => 'POST', 'auth' => true], + 'Exists' => ['title' => __d('baser_core', '存在確認'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/exists/*.json', 'method' => 'GET', 'auth' => true], + 'GetContentFolder_list' => ['title' => __d('baser_core', 'フォルダ一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/get_content_folder_list/*.json', 'method' => 'GET', 'auth' => true], + 'GetFullUrl' => ['title' => __d('baser_core', 'フルURL取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/get_full_url/*.json', 'method' => 'GET', 'auth' => true], + 'IsUniqueContent' => ['title' => __d('baser_core', '一意性チェック'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/is_unique_content.json', 'method' => 'POST', 'auth' => true], + 'Move' => ['title' => __d('baser_core', '移動'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/move.json', 'method' => 'POST', 'auth' => true], + 'Rename' => ['title' => __d('baser_core', 'リネーム'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/rename.json', 'method' => 'POST', 'auth' => true], + 'TrashEmpty' => ['title' => __d('baser_core', 'ゴミ箱を空にする'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/trash_empty.json', 'method' => 'POST', 'auth' => true], + 'TrashReturn' => ['title' => __d('baser_core', 'ゴミ箱から戻す'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/trash_return/*.json', 'method' => 'GET', 'auth' => true], + 'ViewTrash' => ['title' => __d('baser_core', 'ゴミ箱内一覧'), 'url' => $apiAdminUrlPrefix . '/baser-core/contents/view_trash/*.json', 'method' => '*', 'auth' => true], ] ], @@ -221,9 +227,9 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/dblogs/index.json', 'method' => '*', 'auth' => true], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/dblogs/add.json', 'method' => 'POST', 'auth' => true], - 'DeleteAll' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/dblogs/delete_all.json', 'method' => 'POST', 'auth' => false] + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/dblogs/index.json', 'method' => '*', 'auth' => true], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/dblogs/add.json', 'method' => 'POST', 'auth' => true], + 'DeleteAll' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/dblogs/delete_all.json', 'method' => 'POST', 'auth' => false] ] ], @@ -232,12 +238,12 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/pages/index.json', 'method' => '*', 'auth' => true], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/pages/view/*.json', 'method' => '*', 'auth' => true], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/pages/add.json', 'method' => 'POST', 'auth' => true], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/pages/edit/*.json', 'method' => 'POST', 'auth' => true], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/pages/delete/*.json', 'method' => 'POST', 'auth' => true], - 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/api/admin/baser-core/pages/copy.json', 'method' => 'POST', 'auth' => true] + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/pages/index.json', 'method' => '*', 'auth' => true], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/pages/view/*.json', 'method' => '*', 'auth' => true], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/pages/add.json', 'method' => 'POST', 'auth' => true], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/pages/edit/*.json', 'method' => 'POST', 'auth' => true], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/pages/delete/*.json', 'method' => 'POST', 'auth' => true], + 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $apiAdminUrlPrefix . '/baser-core/pages/copy.json', 'method' => 'POST', 'auth' => true] ] ], @@ -246,14 +252,14 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/permissions/index/*.json', 'method' => '*', 'auth' => false], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/permissions/view/*.json', 'method' => '*', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/permissions/add.json', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/permissions/edit/*.json', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/permissions/delete/*.json', 'method' => 'POST', 'auth' => false], - 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/api/admin/baser-core/permissions/copy/*.json', 'method' => 'POST', 'auth' => false], - 'Batch' => ['title' => __d('baser_core', '一括処理'), 'url' => '/baser/api/admin/baser-core/permissions/batch.json', 'method' => 'POST', 'auth' => false], - 'UpdateSort' => ['title' => __d('baser_core', '並び順変更'), 'url' => '/baser/api/admin/baser-core/permissions/update_sort/*.json', 'method' => 'POST', 'auth' => false] + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/index/*.json', 'method' => '*', 'auth' => false], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/view/*.json', 'method' => '*', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/add.json', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/edit/*.json', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/delete/*.json', 'method' => 'POST', 'auth' => false], + 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/copy/*.json', 'method' => 'POST', 'auth' => false], + 'Batch' => ['title' => __d('baser_core', '一括処理'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/batch.json', 'method' => 'POST', 'auth' => false], + 'UpdateSort' => ['title' => __d('baser_core', '並び順変更'), 'url' => $apiAdminUrlPrefix . '/baser-core/permissions/update_sort/*.json', 'method' => 'POST', 'auth' => false] ] ], @@ -262,17 +268,17 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/plugins/add.json', 'method' => 'POST', 'auth' => false], - 'Attach' => ['title' => __d('baser_core', '有効化'), 'url' => '/baser/api/admin/baser-core/plugins/attach/*.json', 'method' => 'POST', 'auth' => false], - 'Batch' => ['title' => __d('baser_core', '一括処理'), 'url' => '/baser/api/admin/baser-core/plugins/batch.json', 'method' => 'POST', 'auth' => false], - 'Detach' => ['title' => __d('baser_core', '無効化'), 'url' => '/baser/api/admin/baser-core/plugins/detach/*.json', 'method' => 'POST', 'auth' => false], - 'GetMarketPlugins' => ['title' => __d('baser_core', 'マーケットのプラグインを取得'), 'url' => '/baser/api/admin/baser-core/plugins/get_market_plugins.json', 'method' => 'GET', 'auth' => false], - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/plugins/index.json', 'method' => 'GET', 'auth' => false], - 'Install' => ['title' => __d('baser_core', 'インストール'), 'url' => '/baser/api/admin/baser-core/plugins/install/*.json', 'method' => 'POST', 'auth' => false], - 'ResetDb' => ['title' => __d('baser_core', 'データベース初期化'), 'url' => '/baser/api/admin/baser-core/plugins/reset_db/*.json', 'method' => 'POST', 'auth' => false], - 'Uninstall' => ['title' => __d('baser_core', 'アンインストール'), 'url' => '/baser/api/admin/baser-core/plugins/uninstall/*.json', 'method' => 'POST', 'auth' => false], - 'UpdateSort' => ['title' => __d('baser_core', '並び順変更'), 'url' => '/baser/api/admin/baser-core/plugins/update_sort.json', 'method' => 'POST', 'auth' => false], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/plugins/view/*.json', 'method' => 'GET', 'auth' => false] + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/add.json', 'method' => 'POST', 'auth' => false], + 'Attach' => ['title' => __d('baser_core', '有効化'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/attach/*.json', 'method' => 'POST', 'auth' => false], + 'Batch' => ['title' => __d('baser_core', '一括処理'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/batch.json', 'method' => 'POST', 'auth' => false], + 'Detach' => ['title' => __d('baser_core', '無効化'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/detach/*.json', 'method' => 'POST', 'auth' => false], + 'GetMarketPlugins' => ['title' => __d('baser_core', 'マーケットのプラグインを取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/get_market_plugins.json', 'method' => 'GET', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/index.json', 'method' => 'GET', 'auth' => false], + 'Install' => ['title' => __d('baser_core', 'インストール'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/install/*.json', 'method' => 'POST', 'auth' => false], + 'ResetDb' => ['title' => __d('baser_core', 'データベース初期化'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/reset_db/*.json', 'method' => 'POST', 'auth' => false], + 'Uninstall' => ['title' => __d('baser_core', 'アンインストール'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/uninstall/*.json', 'method' => 'POST', 'auth' => false], + 'UpdateSort' => ['title' => __d('baser_core', '並び順変更'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/update_sort.json', 'method' => 'POST', 'auth' => false], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/plugins/view/*.json', 'method' => 'GET', 'auth' => false] ] ], @@ -281,9 +287,9 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'CheckSendmail' => ['title' => __d('baser_core', 'メール送信テスト'), 'url' => '/baser/api/admin/baser-core/site_configs/check_sendmail.json', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/site_configs/edit.json', 'method' => 'POST', 'auth' => false], - 'View' => ['title' => __d('baser_core', '設定取得'), 'url' => '/baser/api/admin/baser-core/site_configs/view.json', 'method' => 'GET', 'auth' => true], + 'CheckSendmail' => ['title' => __d('baser_core', 'メール送信テスト'), 'url' => $apiAdminUrlPrefix . '/baser-core/site_configs/check_sendmail.json', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/site_configs/edit.json', 'method' => 'POST', 'auth' => false], + 'View' => ['title' => __d('baser_core', '設定取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/site_configs/view.json', 'method' => 'GET', 'auth' => true], ] ], @@ -292,12 +298,12 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/sites/add.json', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/sites/delete/*.json', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/sites/edit/*.json', 'method' => 'POST', 'auth' => false], - 'GetSelectableDevicesAndLang' => ['title' => __d('baser_core', '選択可能な言語とデバイス取得'), 'url' => '/baser/api/admin/baser-core/sites/get_selectable_devices_and_lang/*.json', 'method' => 'GET', 'auth' => true], - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/sites/index.json', 'method' => 'GET', 'auth' => true], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/sites/view/*.json', 'method' => 'GET', 'auth' => true], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/sites/add.json', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/sites/delete/*.json', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/sites/edit/*.json', 'method' => 'POST', 'auth' => false], + 'GetSelectableDevicesAndLang' => ['title' => __d('baser_core', '選択可能な言語とデバイス取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/sites/get_selectable_devices_and_lang/*.json', 'method' => 'GET', 'auth' => true], + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/sites/index.json', 'method' => 'GET', 'auth' => true], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/sites/view/*.json', 'method' => 'GET', 'auth' => true], ] ], @@ -306,13 +312,13 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/themes/add.json', 'method' => 'POST', 'auth' => false], - 'Apply' => ['title' => __d('baser_core', '適用'), 'url' => '/baser/api/admin/baser-core/themes/apply/*.json', 'method' => 'POST', 'auth' => false], - 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/api/admin/baser-core/themes/copy/*.json', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/themes/delete/*.json', 'method' => 'POST', 'auth' => false], - 'GetMarketThemes' => ['title' => __d('baser_core', 'マーケットのテーマを取得'), 'url' => '/baser/api/admin/baser-core/themes/get_market_themes.json', 'method' => 'GET', 'auth' => false], - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/themes/index.json', 'method' => 'GET', 'auth' => false], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/themes/view/*.json', 'method' => 'GET', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/add.json', 'method' => 'POST', 'auth' => false], + 'Apply' => ['title' => __d('baser_core', '適用'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/apply/*.json', 'method' => 'POST', 'auth' => false], + 'Copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/copy/*.json', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/delete/*.json', 'method' => 'POST', 'auth' => false], + 'GetMarketThemes' => ['title' => __d('baser_core', 'マーケットのテーマを取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/get_market_themes.json', 'method' => 'GET', 'auth' => false], + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/index.json', 'method' => 'GET', 'auth' => false], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/themes/view/*.json', 'method' => 'GET', 'auth' => false], ] ], @@ -321,13 +327,13 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/user_groups/add.json', 'method' => 'POST', 'auth' => false], - 'copy' => ['title' => __d('baser_core', 'コピー'), 'url' => '/baser/api/admin/baser-core/user_groups/copy/*.json', 'method' => 'POST', 'auth' => false], - 'delete' => ['title' => __d('baser_core', '削除'), 'url' => '/baser/api/admin/baser-core/user_groups/delete/*.json', 'method' => 'POST', 'auth' => false], - 'edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/user_groups/edit/*.json', 'method' => 'POST', 'auth' => false], - 'index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/user_groups/index.json', 'method' => 'GET', 'auth' => false], - 'list' => ['title' => __d('baser_core', 'リスト取得'), 'url' => '/baser/api/admin/baser-core/user_groups/list.json', 'method' => 'GET', 'auth' => false], - 'view' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/user_groups/view/*.json', 'method' => 'GET', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/add.json', 'method' => 'POST', 'auth' => false], + 'copy' => ['title' => __d('baser_core', 'コピー'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/copy/*.json', 'method' => 'POST', 'auth' => false], + 'delete' => ['title' => __d('baser_core', '削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/delete/*.json', 'method' => 'POST', 'auth' => false], + 'edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/edit/*.json', 'method' => 'POST', 'auth' => false], + 'index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/index.json', 'method' => 'GET', 'auth' => false], + 'list' => ['title' => __d('baser_core', 'リスト取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/list.json', 'method' => 'GET', 'auth' => false], + 'view' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/user_groups/view/*.json', 'method' => 'GET', 'auth' => false], ] ], @@ -336,11 +342,11 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => '/baser/api/admin/baser-core/users/index.json', 'method' => 'GET', 'auth' => false], - 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => '/baser/api/admin/baser-core/users/view/*.json', 'method' => 'GET', 'auth' => false], - 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => '/baser/api/admin/baser-core/users/add.json', 'method' => 'POST', 'auth' => false], - 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => '/baser/api/admin/baser-core/users/edit/*.json', 'method' => 'POST', 'auth' => false], - 'Delete' => ['title' => __d('baser_core', '削除'), 'method' => 'POST', 'url' => '/baser/api/admin/baser-core/users/delete/*.json', 'auth' => false] + 'Index' => ['title' => __d('baser_core', '一覧取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/users/index.json', 'method' => 'GET', 'auth' => false], + 'View' => ['title' => __d('baser_core', '単一取得'), 'url' => $apiAdminUrlPrefix . '/baser-core/users/view/*.json', 'method' => 'GET', 'auth' => false], + 'Add' => ['title' => __d('baser_core', '新規登録'), 'url' => $apiAdminUrlPrefix . '/baser-core/users/add.json', 'method' => 'POST', 'auth' => false], + 'Edit' => ['title' => __d('baser_core', '編集'), 'url' => $apiAdminUrlPrefix . '/baser-core/users/edit/*.json', 'method' => 'POST', 'auth' => false], + 'Delete' => ['title' => __d('baser_core', '削除'), 'method' => 'POST', 'url' => $apiAdminUrlPrefix . '/baser-core/users/delete/*.json', 'auth' => false] ] ], @@ -349,14 +355,16 @@ 'plugin' => 'BaserCore', 'type' => 'Api/Admin', 'items' => [ - 'clear_cache' => ['title' => __d('baser_core', 'キャッシュクリア'), 'url' => '/baser/api/admin/baser-core/utilities/clear_cache.json', 'method' => 'GET', 'auth' => true], - 'delete_log' => ['title' => __d('baser_core', 'ログ削除'), 'url' => '/baser/api/admin/baser-core/utilities/delete_log.json', 'method' => 'POST', 'auth' => false], - 'download_log' => ['title' => __d('baser_core', 'ログダウンロード'), 'url' => '/baser/api/admin/baser-core/utilities/download_log.json', 'method' => 'GET', 'auth' => false], - 'reset_contents_tree' => ['title' => __d('baser_core', 'ツリー構造リセット'), 'url' => '/baser/api/admin/baser-core/utilities/reset_contents_tree.json', 'method' => 'POST', 'auth' => false], - 'save_search_opened' => ['title' => __d('baser_core', '検索ボックス開閉状態保存'), 'url' => '/baser/api/admin/baser-core/utilities/save_search_opened/*.json', 'method' => 'POST', 'auth' => true], - 'verity_contents_tree' => ['title' => __d('baser_core', 'ツリー構造チェック'), 'url' => '/baser/api/admin/baser-core/utilities/verity_contents_tree.json', 'method' => 'POST', 'auth' => false], + 'clear_cache' => ['title' => __d('baser_core', 'キャッシュクリア'), 'url' => $apiAdminUrlPrefix . '/baser-core/utilities/clear_cache.json', 'method' => 'GET', 'auth' => true], + 'delete_log' => ['title' => __d('baser_core', 'ログ削除'), 'url' => $apiAdminUrlPrefix . '/baser-core/utilities/delete_log.json', 'method' => 'POST', 'auth' => false], + 'download_log' => ['title' => __d('baser_core', 'ログダウンロード'), 'url' => $apiAdminUrlPrefix . '/baser-core/utilities/download_log.json', 'method' => 'GET', 'auth' => false], + 'reset_contents_tree' => ['title' => __d('baser_core', 'ツリー構造リセット'), 'url' => $apiAdminUrlPrefix . '/baser-core/utilities/reset_contents_tree.json', 'method' => 'POST', 'auth' => false], + 'save_search_opened' => ['title' => __d('baser_core', '検索ボックス開閉状態保存'), 'url' => $apiAdminUrlPrefix . '/baser-core/utilities/save_search_opened/*.json', 'method' => 'POST', 'auth' => true], + 'verity_contents_tree' => ['title' => __d('baser_core', 'ツリー構造チェック'), 'url' => $apiAdminUrlPrefix . '/baser-core/utilities/verity_contents_tree.json', 'method' => 'POST', 'auth' => false], ] ], ] ]; + +return $permissions;