Enable users to execute workflows
This commit is contained in:
@@ -48,9 +48,9 @@ class ServicePolicy
|
||||
* @param string $stage
|
||||
* @return bool
|
||||
*/
|
||||
public function progress(User $uo,Service $so,string $stage): bool
|
||||
public function progress(User $uo,Service $so,string $stage=''): bool
|
||||
{
|
||||
return $so->actions()->has($stage);
|
||||
return $stage ? $so->actions()->has(strtoupper($stage)) : $so->actions()->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user