Skip to content
Snippets Groups Projects
Commit ff178cdf authored by Demian Katz's avatar Demian Katz
Browse files

Added access.PrimoModule permission.

parent 67d3f0e9
Branches
Tags
No related merge requests found
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
; access.DebugMode - Allows ?debug=true GET parameter to turn on debug mode ; access.DebugMode - Allows ?debug=true GET parameter to turn on debug mode
; access.EDSExtendedResults - Controls visibility of protected EDS results ; access.EDSExtendedResults - Controls visibility of protected EDS results
; access.EITModule - Controls access to the EBSCO EIT module (if active) ; access.EITModule - Controls access to the EBSCO EIT module (if active)
; access.PrimoModule - Controls access to ALL Primo content
; access.StaffViewTab - Controls access to the staff view tab in record mode ; access.StaffViewTab - Controls access to the staff view tab in record mode
; access.SummonExtendedResults - Controls visibility of protected Summon results ; access.SummonExtendedResults - Controls visibility of protected Summon results
...@@ -80,6 +81,12 @@ ...@@ -80,6 +81,12 @@
role = loggedin role = loggedin
permission = access.EITModule permission = access.EITModule
; Default configuration for the Primo module (allow everyone by default).
[default.PrimoModule]
role[] = guest
role[] = loggedin
permission = access.PrimoModule
; Show staff view for all users by default ; Show staff view for all users by default
[default.StaffViewTab] [default.StaffViewTab]
role[] = guest role[] = guest
......
...@@ -46,6 +46,7 @@ class PrimoController extends AbstractSearch ...@@ -46,6 +46,7 @@ class PrimoController extends AbstractSearch
*/ */
public function __construct(ServiceLocatorInterface $sm) public function __construct(ServiceLocatorInterface $sm)
{ {
$this->accessPermission = 'access.PrimoModule';
$this->searchClassId = 'Primo'; $this->searchClassId = 'Primo';
parent::__construct($sm); parent::__construct($sm);
} }
......
...@@ -47,6 +47,7 @@ class PrimorecordController extends AbstractRecord ...@@ -47,6 +47,7 @@ class PrimorecordController extends AbstractRecord
public function __construct(ServiceLocatorInterface $sm) public function __construct(ServiceLocatorInterface $sm)
{ {
// Override some defaults: // Override some defaults:
$this->accessPermission = 'access.PrimoModule';
$this->searchClassId = 'Primo'; $this->searchClassId = 'Primo';
$this->fallbackDefaultTab = 'Description'; $this->fallbackDefaultTab = 'Description';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment