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 50b7acca
authored
Mar 21, 2010
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of tkfftk@dev.intra.insomnia.fi:/data/bortal
2 parents
ee1d7493
ae4b2d53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
deleted
100644 → 0
View file @
ee1d749
No preview for this file type
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
View file @
50b7acc
...
@@ -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