Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
d8e3f581
Unverified
Commit
d8e3f581
authored
Jan 10, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
Fix #12619
parent
17fbc135
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
src/main/java/org/b3log/solo/processor/console/UserConsole.java
...in/java/org/b3log/solo/processor/console/UserConsole.java
+1
-7
No files found.
src/main/java/org/b3log/solo/processor/console/UserConsole.java
View file @
d8e3f581
...
...
@@ -39,15 +39,12 @@ import org.b3log.solo.util.Solos;
import
org.json.JSONArray
;
import
org.json.JSONObject
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
/**
* User console request processing.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:385321165@qq.com">DASHU</a>
* @version 1.2.1.
4, Dec 11, 2018
* @version 1.2.1.
5, Jan 10, 2019
* @since 0.4.0
*/
@RequestProcessor
...
...
@@ -162,7 +159,6 @@ public class UserConsole {
*
* @param context the specified http request context
*/
@Before
(
ConsoleAdminAuthAdvice
.
class
)
public
void
addUser
(
final
RequestContext
context
)
{
final
JsonRenderer
renderer
=
new
JsonRenderer
();
context
.
setRenderer
(
renderer
);
...
...
@@ -170,8 +166,6 @@ public class UserConsole {
renderer
.
setJSONObject
(
ret
);
try
{
final
HttpServletRequest
request
=
context
.
getRequest
();
final
HttpServletResponse
response
=
context
.
getResponse
();
final
JSONObject
requestJSONObject
=
context
.
requestJSON
();
if
(
Solos
.
isAdminLoggedIn
(
context
))
{
// if the administrator register a new user, treats the new user as a normal user
// (defaultRole) who could post article
...
...
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