Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
32d3d9ed197b1fa6e06f39e8df4b1cae775aee92
1 parent
591c28a8
【4.4】 权限 大小童
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
client/js/goods/netsale.js
client/js/goods/shelf_audit/index.js
server/mid/auth.js
client/js/goods/netsale.js
View file @
32d3d9e
...
...
@@ -12,7 +12,7 @@ var ENUM = {
1
:
'成人'
,
2
:
'大童'
,
3
:
'小童'
,
'2|3'
:
"大
童/
小童"
'2|3'
:
"大小童"
},
status
:
{
'8'
:
'待上架'
,
...
...
client/js/goods/shelf_audit/index.js
View file @
32d3d9e
...
...
@@ -49,7 +49,7 @@ var AgeLevelEnum = {
1
:
"成人"
,
2
:
"大童"
,
3
:
"小童"
,
"
"
:
"未知年龄
"
"
2|3"
:
"大小童
"
}
}
...
...
server/mid/auth.js
View file @
32d3d9e
...
...
@@ -89,7 +89,12 @@ module.exports = function(req, res, next) {
author
.
validateAuthor
(
req
.
session
.
user
.
auth
.
pid
,
req
.
session
.
user
.
auth
.
role_id
,
path
,
function
(
data
){
if
(
data
.
code
!=
200
){
res
.
status
(
403
);
res
.
render
(
'error/error_nolayout'
,{
message
:
NO_AUTH
,
layout
:
false
,
cssfile
:
CSS_FILE
});
if
(
!
req
.
xhr
){
res
.
render
(
'error/error_nolayout'
,{
message
:
NO_AUTH
,
layout
:
false
,
cssfile
:
CSS_FILE
});
}
else
{
res
.
json
({
code
:
304
,
message
:
"没有权限!"
});
}
return
;
}
nextRedirect
(
method
,
path
);
...
...
Please
register
or
login
to post a comment