TIPOFF / test-support

PHP Package for test support on other packages
MIT License
0 stars 0 forks source link

Permissions Migrations #20

Closed djamesfar closed 3 years ago

djamesfar commented 3 years ago

example from the Fees package:


    public function up()
    {
        $permissions = [
             'view fees' => ['Owner', 'Staff'],
             'create fees' => ['Owner'],
             'update fees' => ['Owner'],
             'delete fees' => [],   // Admin only
        ];

        $this->createPermissions($permissions);
    }
drewroberts commented 3 years ago

This issue does not apply to the test support package. There may be a way to do a better job of testing the migrated permissions though and making sure they are assigned to roles.