Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 85fd65b6
authored
May 12, 2012
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
le fix
1 parent
5a7124c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/UserBean.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/UserBean.java
View file @
85fd65b
...
@@ -191,7 +191,7 @@ public class UserBean implements UserBeanLocal {
...
@@ -191,7 +191,7 @@ public class UserBean implements UserBeanLocal {
user
=
eventUserFacade
.
merge
(
user
);
user
=
eventUserFacade
.
merge
(
user
);
logger
.
debug
(
"uploading image to userid {}"
,
user
);
logger
.
debug
(
"uploading image to userid {}"
,
user
);
I
User
curruser
=
permbean
.
getCurrentUser
();
Event
User
curruser
=
permbean
.
getCurrentUser
();
if
(!
curruser
.
equals
(
user
)
&&
!
permbean
.
hasPermission
(
UserPermission
.
MODIFY
))
{
if
(!
curruser
.
equals
(
user
)
&&
!
permbean
.
hasPermission
(
UserPermission
.
MODIFY
))
{
loggerbean
.
logMessage
(
SecurityLogType
.
permissionDenied
,
curruser
,
"user tried to save picture to userid "
+
user
+
" without sufficient permissions!"
);
loggerbean
.
logMessage
(
SecurityLogType
.
permissionDenied
,
curruser
,
"user tried to save picture to userid "
+
user
+
" without sufficient permissions!"
);
throw
new
EJBAccessException
(
"No permission to upload image as another user"
);
throw
new
EJBAccessException
(
"No permission to upload image as another user"
);
...
...
Write
Preview
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