Skip to content

Commit

Permalink
Portfolio: all admins can edit and delete categories not only the own…
Browse files Browse the repository at this point in the history
…er -refs BT#19052
  • Loading branch information
NicoDucou committed Sep 28, 2021
1 parent 80e6f31 commit 6f3dc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/PortfolioController.php
Expand Up @@ -323,7 +323,7 @@ public function editCategory(PortfolioCategory $category)
{
global $interbreadcrumb;

if (!$this->categoryBelongToOwner($category)) {
if (!api_is_platform_admin()) {
api_not_allowed(true);
}

Expand Down Expand Up @@ -434,7 +434,7 @@ public function showHideCategory(PortfolioCategory $category)
*/
public function deleteCategory(PortfolioCategory $category)
{
if (!$this->categoryBelongToOwner($category)) {
if (!api_is_platform_admin()) {
api_not_allowed(true);
}

Expand Down

0 comments on commit 6f3dc26

Please sign in to comment.