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 428307cd
authored
Dec 07, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that user has permission to create verkkomaksu
1 parent
3dad43a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/VerkkomaksutFiBean.java
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillEditView.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/VerkkomaksutFiBean.java
View file @
428307c
...
...
@@ -97,6 +97,10 @@ public class VerkkomaksutFiBean implements VerkkomaksutFiBeanLocal {
@Override
public
boolean
isSvmEnabled
()
{
if
(!
permbean
.
hasPermission
(
BillPermission
.
CREATE_VERKKOMAKSU
))
{
return
false
;
}
LanEventPrivateProperty
expire
=
eventbean
.
getPrivateProperty
(
LanEventPrivatePropertyKey
.
VERKKOMAKSU_KEY_EXPIRE
);
String
merchantid
=
eventbean
.
getPrivatePropertyString
(
LanEventPrivatePropertyKey
.
VERKKOMAKSU_MERCHANT_ID
);
String
merchantPassword
=
eventbean
.
getPrivatePropertyString
(
LanEventPrivatePropertyKey
.
VERKKOMAKSU_MERCHANT_PASSWORD
);
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillEditView.java
View file @
428307c
...
...
@@ -99,7 +99,7 @@ public class BillEditView extends GenericCDIView {
public
VerkkomaksutReturnEntry
getVerkkomaksuFiToken
()
{
if
(
bill
!=
null
&&
vmreturn
==
null
)
if
(
isVerkkomaksuFiAvailable
()
&&
bill
!=
null
&&
vmreturn
==
null
)
{
vmreturn
=
vmbean
.
getSvmToken
(
bill
);
logger
.
info
(
"Vmtoken url {}, token {}"
,
vmreturn
.
getUrl
(),
vmreturn
.
getToken
());
...
...
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