mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix defekt abort transaction button
This commit is contained in:
parent
097f1a33f9
commit
8232657718
@ -74,7 +74,8 @@ enum PageState {
|
||||
{
|
||||
//mSession->finalizeTransaction(false, true);
|
||||
//
|
||||
if(!transaction.isNull() && transaction->getModel()->getUserId() == user_model->getID())
|
||||
if(!transaction.isNull() &&
|
||||
(transaction_body->isCreation() || transaction->getModel()->getUserId() == user_model->getID()))
|
||||
{
|
||||
if(pt->removeTask(transaction)) {
|
||||
transaction->deleteFromDB();
|
||||
@ -150,7 +151,7 @@ enum PageState {
|
||||
transaction_body = transaction->getTransactionBody();
|
||||
// user can only delete there own transactions
|
||||
// TODO: Auto timeout for community transactions
|
||||
if(transaction->getModel()->getUserId() == user_model->getID()) {
|
||||
if(transaction_body->isCreation() || transaction->getModel()->getUserId() == user_model->getID()) {
|
||||
transaction_removeable = true;
|
||||
}
|
||||
}
|
||||
@ -354,4 +355,4 @@ enum PageState {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="include/footer_chr.cpsp" %>
|
||||
<%@ include file="include/footer_chr.cpsp" %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user