added plugin screen (#671)

This commit is contained in:
Kevin Papst
2019-04-08 18:38:56 +02:00
committed by GitHub
parent 5bea9915f5
commit 3a4aa5a001
68 changed files with 1392 additions and 490 deletions

View File

@@ -77,7 +77,7 @@ class TimesheetVoter extends AbstractVoter
switch ($attribute) {
case self::START:
if (!$this->canStart($subject, $user, $token)) {
if (!$this->canStart($subject)) {
return false;
}
$permission .= $attribute;
@@ -113,11 +113,9 @@ class TimesheetVoter extends AbstractVoter
/**
* @param Timesheet $timesheet
* @param User $user
* @param TokenInterface $token
* @return bool
*/
protected function canStart(Timesheet $timesheet, User $user, TokenInterface $token)
protected function canStart(Timesheet $timesheet)
{
// possible improvements for the future:
// we could check the amount of active entries (maybe slow)