Skip to content
Snippets Groups Projects
Verified Commit 6a99133c authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #38 refactoring action admin

parent 26c55d7b
No related branches found
No related tags found
No related merge requests found
......@@ -85,9 +85,3 @@ export class ActionsAdministrationComponent implements OnInit {
}
}
}
export interface Action {
id: number;
label_action: string;
history: string;
is_folder_action: string;
}
\ No newline at end of file
......@@ -23,6 +23,10 @@ class ActionController
{
public function get(Request $request, Response $response)
{
if (!ServiceModel::hasService(['id' => 'admin_actions', 'userId' => $GLOBALS['userId'], 'location' => 'apps', 'type' => 'admin'])) {
return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
}
$obj ['actions']= ActionModel::get();
return $response->withJson($obj);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment