Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
277
Merge Requests
36
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
c58923ec
Commit
c58923ec
authored
38 minutes ago
by
Marcelo Rivera
Browse files
Options
Download
(fix): lint
parent
c5ab2c9d
feat/unverified-users-permissions
1 merge request
!459
Deny write permissions for new unverified users
Pipeline
#118046618
passed with stages
in 7 minutes and 23 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
Core/Blogs/Manager.php
View file @
c58923ec
...
...
@@ -117,7 +117,6 @@ class Manager
*/
public
function
add
(
Blog
$blog
)
{
if
(
$this
->
spam
->
check
(
$blog
))
{
return
false
;
}
...
...
This diff is collapsed.
Core/Wire/Manager.php
View file @
c58923ec
...
...
@@ -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
();
...
...
This diff is collapsed.
Entities/NormalizedEntity.php
View file @
c58923ec
...
...
@@ -193,7 +193,8 @@ class NormalizedEntity
return
$export
;
}
public
function
canEdit
()
{
public
function
canEdit
()
{
return
Core\Security\ACL
::
_
()
->
write
(
$this
);
}
}
This diff is collapsed.
Spec/Core/Votes/ManagerSpec.php
View file @
c58923ec
...
...
@@ -98,7 +98,6 @@ class ManagerSpec extends ObjectBehavior
Activity
$entity
,
User
$user
)
{
$vote
->
getEntity
()
->
shouldBeCalled
()
->
willReturn
(
$entity
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment