44 lines
939 B
PHP
44 lines
939 B
PHP
<?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']],
|
|
];
|
|
}
|
|
}
|