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
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
179
Issues
179
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
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
f1f564ce
Commit
f1f564ce
authored
3 hours ago
by
Emiliano Balbuena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): Only owners can list/read their campaigns
parent
6dead061
goal/boost-campaigns-e24
1 merge request
!235
WIP: Boost Campaigns (&24)
Pipeline
#72763181
passed with stages
in 9 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
campaigns.php
Controllers/api/v2/boost/campaigns.php
+3
-1
campaigns.php
Controllers/api/v2/boost/fetch/campaigns.php
+1
-0
No files found.
Controllers/api/v2/boost/campaigns.php
View file @
f1f564ce
...
...
@@ -57,7 +57,9 @@ class campaigns implements Interfaces\Api
'limit'
=>
$limit
,
'offset'
=>
$offset
,
'guid'
=>
$guid
,
]);
])
->
filter
(
function
(
Campaign
$campaign
)
{
return
$campaign
->
getOwnerGuid
()
==
Session
::
getLoggedinUserGuid
();
});
return
Factory
::
response
([
'campaigns'
=>
$response
,
...
...
This diff is collapsed.
Click to expand it.
Controllers/api/v2/boost/fetch/campaigns.php
View file @
f1f564ce
...
...
@@ -72,6 +72,7 @@ class campaigns implements Interfaces\Api
$cacher
=
Core\Data\cache\factory
::
build
(
'Redis'
);
$cacheKey
=
"
{
$userGuid
}
:boost-offset-rotator:
{
$type
}
:
{
$quality
}
:
{
$rating
}
"
;
// TODO: ENABLE ME AGAIN!
// $offset = $cacher->get($cacheKey);
$offset
=
null
;
...
...
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