Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d8b678f2
authored
2018-04-10 21:43:27 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
cookie
1 parent
4db1e873
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
application/helpers/activate_helper.php
application/helpers/activate_helper.php
View file @
d8b678f
...
...
@@ -25,6 +25,7 @@ if(!function_exists('hasRole')) {
$CI
=
&
get_instance
();
$CI
->
load
->
helper
(
'cookie'
);
$login_user
=
get_cookie
(
'login_user'
);
if
(
$login_user
)
{
$login_user
=
json_decode
(
$login_user
,
true
);
foreach
(
$login_user
[
'roleKeys'
]
as
$v
){
if
(
in_array
(
$v
,
$roles
)){
...
...
@@ -33,4 +34,5 @@ if(!function_exists('hasRole')) {
}
return
false
;
}
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment