Ajout d'une extension
This commit is contained in:
43
ext/phpbbstudio/ass/migrations/update_permissions.php
Normal file
43
ext/phpbbstudio/ass/migrations/update_permissions.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* phpBB Studio - Advanced Shop System. An extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019, phpBB Studio, https://www.phpbbstudio.com
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbbstudio\ass\migrations;
|
||||
|
||||
/**
|
||||
* phpBB Studio - Advanced Shop System: Permissions update migration
|
||||
*/
|
||||
class update_permissions extends \phpbb\db\migration\migration
|
||||
{
|
||||
/**
|
||||
* Assign migration file dependencies for this migration.
|
||||
*
|
||||
* @return array Array of migration files
|
||||
* @access public
|
||||
* @static
|
||||
*/
|
||||
static public function depends_on()
|
||||
{
|
||||
return ['\phpbbstudio\ass\migrations\install_permissions'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the ASS extension permissions to the database.
|
||||
*
|
||||
* @return array Array of permissions
|
||||
* @access public
|
||||
*/
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
/* Admin Group permissions */
|
||||
['permission.add', ['a_ass_inventory']],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user