mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Simplify permissions and add API to register configurable ones
Lots of thought has gone into this; it will show up later when I do the admin permissions interface / category permissions :)
This commit is contained in:
@@ -14,10 +14,9 @@ class CreatePermissionsTable extends Migration {
|
||||
{
|
||||
Schema::create('permissions', function($table)
|
||||
{
|
||||
$table->string('grantee', 100);
|
||||
$table->string('entity', 100);
|
||||
$table->integer('group_id')->unsigned();
|
||||
$table->string('permission', 100);
|
||||
$table->primary(['grantee', 'entity', 'permission']);
|
||||
$table->primary(['group_id', 'permission']);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user