Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
53abfb9c
Commit
53abfb9c
authored
Aug 28, 2015
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
22
parent
3b72a460
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
forumIdentifyUser.js
app/controllers/admin/forumIdentifyUser.js
+12
-3
No files found.
app/controllers/admin/forumIdentifyUser.js
View file @
53abfb9c
...
...
@@ -106,17 +106,24 @@ router.get('/user/from/share', function(req, res, next) {
//检查用户权限 旧版
router
.
post
(
'/user/checkLimitAction'
,
function
(
req
,
res
,
next
)
{
// var entity=req.body;
// var userId = entity.mid;
var
userId
=
'55af5114658a348c14578987'
;
var
entity
=
req
.
body
;
var
userId
=
entity
.
mid
;
if
(
userId
){
var
array
=
[];
var
configs
=
[{
code
:
'forum_prohibition_of_speech'
},{
code
:
'forum_not_add_integral'
}];
forumLimitOperationService
.
getLimitOperationByUserId
(
userId
,
function
(
err
,
forumLimitOperation
){
if
(
err
)
{
console
.
error
(
err
);
var
returnObject
=
{
errcode
:
'-1'
,
errmsg
:
err
,
configs
:
configs
,
data
:
array
}
res
.
json
(
returnObject
);
...
...
@@ -147,12 +154,14 @@ router.post('/user/checkLimitAction', function(req, res, next) {
}
var
returnObject
=
{
errcode
:
'success'
,
configs
:
configs
,
data
:
array
}
res
.
json
(
returnObject
);
}
else
{
var
returnObject
=
{
errcode
:
'success'
,
configs
:
configs
,
data
:[]
}
res
.
json
(
returnObject
);
...
...
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