Skip to content

Commit

Permalink
Merge pull request sonata-project#966 from enekochan/patch-2
Browse files Browse the repository at this point in the history
Fix media access times increment in session variable
  • Loading branch information
core23 committed Mar 4, 2016
2 parents 49cb928 + 85908ce commit 8658ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/doc/reference/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Let's create the following strategy : a media can be downloaded only once per se
return false;
}
$this->getSession()->set($this->sessionKey, $times++);
$this->getSession()->set($this->sessionKey, $times + 1);
return true;
}
Expand Down

0 comments on commit 8658ee7

Please sign in to comment.