Commit 46b2698a authored by Nicolas Widart's avatar Nicolas Widart

Fix the update method, unset the slug property for sentry.

parent fce9128a
......@@ -20,6 +20,7 @@ class SentryRoleRepository implements RoleRepository
*/
public function create($data)
{
unset($data['slug']);
Sentry::createGroup($data);
}
......@@ -41,11 +42,10 @@ class SentryRoleRepository implements RoleRepository
*/
public function update($id, $data)
{
unset($data['slug']);
$role = Sentry::findGroupById($id);
$role->permissions($data);
$role->save();
$role->update($data);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment