1
0
mirror of https://github.com/flarum/core.git synced 2025-10-10 22:44:25 +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

@@ -5,6 +5,7 @@ use Illuminate\Contracts\Events\Dispatcher;
use Flarum\Core\Models\Notification;
use Flarum\Core\Models\User;
use Flarum\Core\Models\Post;
use Flarum\Core\Models\Permission;
use Closure;
class ServiceProvider extends IlluminateServiceProvider
@@ -90,4 +91,9 @@ class ServiceProvider extends IlluminateServiceProvider
}
});
}
protected function permission($permission)
{
Permission::addPermission($permission);
}
}