Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 43a0a09f
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
10ca64e2
72a854cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
View file @
43a0a09
...
@@ -44,10 +44,22 @@ public class SessionHandler {
...
@@ -44,10 +44,22 @@ public class SessionHandler {
public
boolean
hasPermission
(
String
target
,
RolePermission
permission
)
{
public
boolean
hasPermission
(
String
target
,
RolePermission
permission
)
{
return
true
;
return
true
;
//return handlerbean.hasPermission(target, getUser(), permission);
//
return handlerbean.hasPermission(target, getUser(), permission);
}
}
public
boolean
canWrite
(
String
target
)
{
return
hasPermission
(
target
,
RolePermission
.
WRITE
);
}
public
boolean
canRead
(
String
target
)
{
return
hasPermission
(
target
,
RolePermission
.
READ
);
}
public
boolean
canExecute
(
String
target
)
{
return
hasPermission
(
target
,
RolePermission
.
EXECUTE
);
}
public
void
setUser
(
User
user
)
{
public
void
setUser
(
User
user
)
{
this
.
user
=
user
;
this
.
user
=
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