Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
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
Commits
000b9dbf
Commit
000b9dbf
authored
Jan 29, 2013
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #177
parent
fb087c43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
core/src/main/java/org/b3log/solo/processor/console/UserConsole.java
...in/java/org/b3log/solo/processor/console/UserConsole.java
+2
-2
core/src/main/java/org/b3log/solo/processor/util/Filler.java
core/src/main/java/org/b3log/solo/processor/util/Filler.java
+2
-1
No files found.
core/src/main/java/org/b3log/solo/processor/console/UserConsole.java
View file @
000b9dbf
...
@@ -41,7 +41,7 @@ import org.json.JSONObject;
...
@@ -41,7 +41,7 @@ import org.json.JSONObject;
* User console request processing.
* User console request processing.
*
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.
1, Aug 9, 2012
* @version 1.0.0.
2, Jan 29, 2013
* @since 0.4.0
* @since 0.4.0
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -335,7 +335,7 @@ public final class UserConsole {
...
@@ -335,7 +335,7 @@ public final class UserConsole {
@RequestProcessing
(
value
=
"/console/user/*"
,
method
=
HTTPRequestMethod
.
GET
)
@RequestProcessing
(
value
=
"/console/user/*"
,
method
=
HTTPRequestMethod
.
GET
)
public
void
getUser
(
final
HttpServletRequest
request
,
final
HttpServletResponse
response
,
final
HTTPRequestContext
context
)
public
void
getUser
(
final
HttpServletRequest
request
,
final
HttpServletResponse
response
,
final
HTTPRequestContext
context
)
throws
Exception
{
throws
Exception
{
if
(!
userUtils
.
is
LoggedIn
(
request
,
response
))
{
if
(!
userUtils
.
is
AdminLoggedIn
(
request
))
{
response
.
sendError
(
HttpServletResponse
.
SC_FORBIDDEN
);
response
.
sendError
(
HttpServletResponse
.
SC_FORBIDDEN
);
return
;
return
;
}
}
...
...
core/src/main/java/org/b3log/solo/processor/util/Filler.java
View file @
000b9dbf
...
@@ -69,7 +69,7 @@ import org.json.JSONObject;
...
@@ -69,7 +69,7 @@ import org.json.JSONObject;
* Filler utilities.
* Filler utilities.
*
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.6.
2, Jan 18
, 2013
* @version 1.0.6.
3, Jan 29
, 2013
* @since 0.3.1
* @since 0.3.1
*/
*/
public
final
class
Filler
{
public
final
class
Filler
{
...
@@ -506,6 +506,7 @@ public final class Filler {
...
@@ -506,6 +506,7 @@ public final class Filler {
dataModel
.
put
(
User
.
USERS
,
userList
);
dataModel
.
put
(
User
.
USERS
,
userList
);
for
(
final
JSONObject
user
:
userList
)
{
for
(
final
JSONObject
user
:
userList
)
{
user
.
remove
(
User
.
USER_EMAIL
);
user
.
remove
(
User
.
USER_EMAIL
);
user
.
remove
(
User
.
USER_PASSWORD
);
}
}
final
String
skinDirName
=
(
String
)
request
.
getAttribute
(
Keys
.
TEMAPLTE_DIR_NAME
);
final
String
skinDirName
=
(
String
)
request
.
getAttribute
(
Keys
.
TEMAPLTE_DIR_NAME
);
...
...
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