1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Updated page revisions link visibility

To match the actual visibilities of the revisions listing page and
options.
Related to #2946
This commit is contained in:
Dan Brown
2022-09-03 12:32:21 +01:00
parent 9158a66bff
commit 2fe261e207
4 changed files with 27 additions and 7 deletions

View File

@@ -89,6 +89,14 @@ abstract class TestCase extends BaseTestCase
return $this->editor;
}
/**
* Set the current user context to be a viewer.
*/
public function asViewer()
{
return $this->actingAs($this->getViewer());
}
/**
* Get an instance of a user with 'viewer' permissions.
*/