Skip to content

Commit

Permalink
PATCH: only allow limits to be set when logged in as ADMIN
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup committed Apr 19, 2017
1 parent c44f276 commit 69736ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/tasks/EcommerceTaskCartCleanup.php
Expand Up @@ -68,7 +68,7 @@ public function run($request)
//LIMITS ...
if ($request) {
$limitFromGetVar = $request->getVar('limit');
if ($limitFromGetVar) {
if ($limitFromGetVar && Permission::check('ADMIN')) {
$maximumNumberOfObjectsDeleted = intval($limitFromGetVar);
}
}
Expand Down

0 comments on commit 69736ec

Please sign in to comment.