Skip to content
Snippets Groups Projects
Commit ae5ec8d6 authored by Demian Katz's avatar Demian Katz
Browse files

Moved check to FavoritesAction; we don't want to break public lists.

parent e191b679
Branches
Tags
No related merge requests found
......@@ -466,6 +466,12 @@ class MyResearchController extends AbstractBase
*/
public function favoritesAction()
{
// Check permission:
$response = $this->permission()->check('feature.Favorites', 'promptLogin');
if (is_object($response)) {
return $response;
}
// Favorites is the same as MyList, but without the list ID parameter.
return $this->forwardTo('MyResearch', 'MyList');
}
......@@ -706,12 +712,6 @@ class MyResearchController extends AbstractBase
throw new ForbiddenException('Lists disabled');
}
// Check permission:
$response = $this->permission()->check('feature.Favorites', 'promptLogin');
if (is_object($response)) {
return $response;
}
// Check for "delete item" request; parameter may be in GET or POST depending
// on calling context.
$deleteId = $this->params()->fromPost(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment