Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
131
Issues
131
List
Boards
Labels
Service Desk
Milestones
Merge Requests
26
Merge Requests
26
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
fb2a961c
Commit
fb2a961c
authored
1 hour ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): if deleted then do not show
parent
3927173f
epic/ReportingAndModeration
1 merge request
!100
Epic/reporting and moderation
Pipeline
#61523009
passed with stages
in 4 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Resolver.php
Core/Entities/Resolver.php
+5
-1
No files found.
Core/Entities/Resolver.php
View file @
fb2a961c
...
...
@@ -14,6 +14,7 @@ use Minds\Core\Entities\Delegates\ResolverDelegate;
use
Minds\Core\Security\ACL
;
use
Minds\Entities\Activity
;
use
Minds\Entities\User
;
use
Minds\Helpers\Flags
;
class
Resolver
{
...
...
@@ -126,7 +127,10 @@ class Resolver
// Filter out forbidden entities
$sorted
=
array_filter
(
$sorted
,
function
(
$entity
)
{
return
$this
->
acl
->
read
(
$entity
,
$this
->
user
);
});
$sorted
=
array_filter
(
$sorted
,
function
(
$entity
)
{
return
$this
->
acl
->
read
(
$entity
,
$this
->
user
)
&&
!
Flags
::
shouldFail
(
$entity
);
});
// Filter out pending activities
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment