fix: Further limit updating cards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -294,6 +294,7 @@ class BoardContext implements Context {
|
||||
*/
|
||||
public function deleteTheCard() {
|
||||
$this->requestContext->sendJSONrequest('DELETE', '/index.php/apps/deck/cards/' . $this->card['id']);
|
||||
$this->card['deletedAt'] = time();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -126,7 +126,7 @@ Feature: decks
|
||||
# We currently still expect to be able to update the card as this is used to undo deletion
|
||||
When set the description to "Update some text"
|
||||
Then the response should have a status code 403
|
||||
#When set the card attribute "deletedAt" to "0"
|
||||
#Then the response should have a status code 200
|
||||
#When set the description to "Update some text"
|
||||
#Then the response should have a status code 200
|
||||
When set the card attribute "deletedAt" to "0"
|
||||
Then the response should have a status code 200
|
||||
When set the description to "Update some text"
|
||||
Then the response should have a status code 200
|
||||
|
||||
Reference in New Issue
Block a user