Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e32bb625
authored
Mar 21, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small changes
1 parent
c14d376b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
View file @
e32bb62
...
@@ -31,15 +31,16 @@ public class SessionHandler {
...
@@ -31,15 +31,16 @@ public class SessionHandler {
}
}
public
boolean
hasPermission
(
String
target
,
String
permission
)
{
public
boolean
hasPermission
(
String
target
,
String
permission
)
{
RolePermission
perm
=
RolePermission
.
READ
;
RolePermission
perm
=
null
;
if
(
permission
.
equals
(
"write"
))
{
if
(
permission
.
equalsIgnoreCase
(
"read"
))
{
perm
=
RolePermission
.
READ
;
}
else
if
(
permission
.
equals
(
"write"
))
{
perm
=
RolePermission
.
WRITE
;
perm
=
RolePermission
.
WRITE
;
}
else
if
(
permission
.
equals
(
"execute"
))
{
}
else
if
(
permission
.
equals
(
"execute"
))
{
perm
=
RolePermission
.
EXECUTE
;
perm
=
RolePermission
.
EXECUTE
;
}
}
return
hasPermission
(
target
,
perm
);
return
hasPermission
(
target
,
perm
);
}
}
public
boolean
hasPermission
(
String
target
,
RolePermission
permission
)
{
public
boolean
hasPermission
(
String
target
,
RolePermission
permission
)
{
...
...
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