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
284
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
000d4b1a
Commit
000d4b1a
authored
4 hours ago
by
Mark Harding
Browse files
Options
Download
(fix): canary flags not working on server side
parent
a37393ba
master
fix/stripe-requirements
No related merge requests found
Pipeline
#102267845
waiting for delayed job with stages
in 7 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Core/Features/Manager.php
View file @
000d4b1a
...
...
@@ -23,10 +23,11 @@ class Manager
/** @var Cookie $cookie */
private
$cookie
;
public
function
__construct
(
$config
=
null
,
$cookie
=
null
)
public
function
__construct
(
$config
=
null
,
$cookie
=
null
,
$user
=
null
)
{
$this
->
config
=
$config
?:
Di
::
_
()
->
get
(
'Config'
);
$this
->
cookie
=
$cookie
?:
new
Cookie
;
$this
->
user
=
$user
??
Session
::
getLoggedInUser
();
}
/**
...
...
@@ -59,6 +60,10 @@ class Manager
return
true
;
}
if
(
$features
[
$feature
]
===
'canary'
&&
$this
->
user
&&
$this
->
user
->
get
(
'canary'
))
{
return
true
;
}
return
$features
[
$feature
]
===
true
;
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment