Add proper permissions for role application routes, allow admins to access application api

This commit is contained in:
Matthew Penner 2020-12-28 12:47:08 -07:00
parent b6abeb0994
commit 9c7b49e2b9
16 changed files with 287 additions and 112 deletions

View file

@ -6,7 +6,7 @@ export default (name: string, description?: string): Promise<Role> => {
http.post('/api/application/roles', {
name, description,
})
.then(({ data }) => resolve(data))
.then(({ data }) => resolve(data.attributes))
.catch(reject);
});
};