1
0
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:
Toby Zerner
2015-05-15 17:05:46 +09:30
parent 15d35fa5db
commit b4e5f0e6e5
5 changed files with 43 additions and 43 deletions

View File

@@ -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']);
});
}