Commit c58923ec authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): lint

1 merge request!459Deny write permissions for new unverified users
Pipeline #118046618 passed with stages
in 7 minutes and 23 seconds
......@@ -117,7 +117,6 @@ class Manager
*/
public function add(Blog $blog)
{
if ($this->spam->check($blog)) {
return false;
}
......
......@@ -100,8 +100,7 @@ class Manager
$offchainTxs = null,
$stripeIntentsManager = null,
$acl = null
)
{
) {
$this->repository = $repository ?: Di::_()->get('Wire\Repository');
$this->txManager = $txManager ?: Di::_()->get('Blockchain\Transactions\Manager');
$this->txRepo = $txRepo ?: Di::_()->get('Blockchain\Transactions\Repository');
......@@ -109,7 +108,7 @@ class Manager
$this->client = $client ?: Di::_()->get('Blockchain\Services\Ethereum');
$this->token = $token ?: Di::_()->get('Blockchain\Token');
$this->cap = $cap ?: Di::_()->get('Blockchain\Wallets\OffChain\Cap');
$this->upgradesDelegate = $upgradesDelegate ?? new Delegates\UpgradesDelegate();;
$this->upgradesDelegate = $upgradesDelegate ?? new Delegates\UpgradesDelegate();
$this->recurringDelegate = $recurringDelegate ?: new Delegates\RecurringDelegate();
$this->notificationDelegate = $notificationDelegate ?: new Delegates\NotificationDelegate();
$this->cacheDelegate = $cacheDelegate ?: new Delegates\CacheDelegate();
......
......@@ -193,7 +193,8 @@ class NormalizedEntity
return $export;
}
public function canEdit() {
public function canEdit()
{
return Core\Security\ACL::_()->write($this);
}
}
......@@ -98,7 +98,6 @@ class ManagerSpec extends ObjectBehavior
Activity $entity,
User $user
) {
$vote->getEntity()
->shouldBeCalled()
->willReturn($entity);
......
Please register or to comment