Browse Source

Fix modules manifest permissions

master
Egorka 6 years ago
parent
commit
c855f3c8cd
  1. 4
      common/modules/banners/manifest.php
  2. 4
      common/modules/blog/manifest.php
  3. 2
      common/modules/blog/migrations/m180827_195932_set_blog_unicode_collate.php
  4. 4
      common/modules/forms/manifest.php
  5. 4
      common/modules/languages/manifest.php
  6. 4
      common/modules/pages/manifest.php

4
common/modules/banners/manifest.php

@ -6,8 +6,6 @@ return [
'description' => 'Banners management and rotation system for site', 'description' => 'Banners management and rotation system for site',
'module' => 'BannersModule', 'module' => 'BannersModule',
'permissions' => [ 'permissions' => [
'BannersManagement' => [ 'BannersManagement' => 'Manage banners system',
'description' => 'Manage banners system'
],
], ],
]; ];

4
common/modules/blog/manifest.php

@ -6,8 +6,6 @@ return [
'description' => 'Blog system for site with comments and slug', 'description' => 'Blog system for site with comments and slug',
'module' => 'BlogModule', 'module' => 'BlogModule',
'permissions' => [ 'permissions' => [
'BlogManagement' => [ 'BlogManagement' => 'Blog management system'
'description' => 'Blog management system'
],
], ],
]; ];

2
common/modules/blog/migrations/m180827_195932_set_blog_unicode_collate.php

@ -17,7 +17,7 @@ class m180827_195932_set_blog_unicode_collate extends Migration
$db->createCommand('SET FOREIGN_KEY_CHECKS=0;')->execute(); $db->createCommand('SET FOREIGN_KEY_CHECKS=0;')->execute();
foreach ($tables as $table) { foreach ($tables as $table) {
$db->createCommand( "ALTER TABLE `$table` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci" )->execute(); $db->createCommand("ALTER TABLE `$table` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci")->execute();
} }
$db->createCommand('SET FOREIGN_KEY_CHECKS=1;')->execute(); $db->createCommand('SET FOREIGN_KEY_CHECKS=1;')->execute();

4
common/modules/forms/manifest.php

@ -6,8 +6,6 @@ return [
'description' => 'Form widget generator for site', 'description' => 'Form widget generator for site',
'module' => 'FormsModule', 'module' => 'FormsModule',
'permissions' => [ 'permissions' => [
'FormsManagement' => [ 'FormsManagement' => 'Forms management',
'description' => 'Forms management'
],
], ],
]; ];

4
common/modules/languages/manifest.php

@ -6,8 +6,6 @@ return [
'description' => 'Web site languages management', 'description' => 'Web site languages management',
'module' => 'LanguagesModule', 'module' => 'LanguagesModule',
'permissions' => [ 'permissions' => [
'LanguagesManagement' => [ 'LanguagesManagement' => 'Languages management',
'description' => 'Languages management'
],
], ],
]; ];

4
common/modules/pages/manifest.php

@ -6,8 +6,6 @@ return [
'description' => 'Custom pages on site with slug', 'description' => 'Custom pages on site with slug',
'module' => 'PagesModule', 'module' => 'PagesModule',
'permissions' => [ 'permissions' => [
'PagesManagement' => [ 'PagesManagement' => 'Manage website pages',
'description' => 'Manage website pages'
],
], ],
]; ];
Loading…
Cancel
Save