Skip to content

Commit

Permalink
Improve security messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Sep 28, 2020
1 parent 586ed74 commit 2de3eea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ public function renderFieldAction($productId, $step, $fieldName)
/**
* @AdminSecurity(
* "is_granted(['read'], request.get('_legacy_controller')) || is_granted(['create', 'update'], 'AdminOrders')",
* message="You do not have permission to update this."
* message="You do not have permission to perform this search."
* )
*
* @param Request $request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function updatePositionAction(Request $request, $attributeGroupId)
/**
* @AdminSecurity(
* "is_granted(['create'], request.get('_legacy_controller'))",
* message="You do not have permission to update this."
* message="You do not have permission to create this."
* )
*
* @param $attributeGroupId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function indexAction(Request $request, AttributeGroupFilters $attributeGr
/**
* @AdminSecurity(
* "is_granted(['create'], request.get('_legacy_controller'))",
* message="You do not have permission to update this."
* message="You do not have permission to create this."
* )
*
* @return RedirectResponse
Expand Down Expand Up @@ -103,7 +103,7 @@ public function editAction($attributeGroupId)
/**
* @AdminSecurity(
* "is_granted(['read'], request.get('_legacy_controller'))",
* message="You do not have permission to update this."
* message="You do not have permission to export this."
* )
*
Expand Down

0 comments on commit 2de3eea

Please sign in to comment.