Make other party name in the transactions list a link if user has owner permissions

This commit is contained in:
Everett Sochowski 2013-06-12 17:03:05 +02:00
parent 8959241f4f
commit 235e27eba0

View File

@ -107,7 +107,10 @@ class OBPTransactionSnippet (params : (TransactionsJson, AccountJson, Transactio
}
def aliasSelector = {
val hasManagementAccess = false //TODO: Calculate this
val hasManagementAccess = {
val availableViews = accountJson.views_available.flatten
availableViews.exists(view => view.id == Some("owner"))
}
def aliasInfo = {