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',
'module' => 'BannersModule',
'permissions' => [
'BannersManagement' => [
'description' => 'Manage banners system'
],
'BannersManagement' => 'Manage banners system',
],
];

4
common/modules/blog/manifest.php

@ -6,8 +6,6 @@ return [
'description' => 'Blog system for site with comments and slug',
'module' => 'BlogModule',
'permissions' => [
'BlogManagement' => [
'description' => 'Blog management system'
],
'BlogManagement' => '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();
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();

4
common/modules/forms/manifest.php

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

4
common/modules/languages/manifest.php

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

4
common/modules/pages/manifest.php

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