mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Add proper permissions for role application routes, allow admins to access application api
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user