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:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user