Skip to content

Commit

Permalink
Fix permissions check for section publication components
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-render committed Sep 20, 2022
1 parent 10b5390 commit bb57283
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/dedalo/component_common/class.component_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -3884,14 +3884,13 @@ public function get_component_permissions() {

$this->permissions = 2; // Allow all users to search in thesaurus

}elseif ( true===in_array($this->tipo, section::get_modified_section_tipos_basic()) ) {

$this->permissions = 2; // Allow all users to search with section publication info components

}elseif ( true===in_array($this->tipo, section::get_publication_section_tipos_basic()) ) {
}elseif ( true===in_array($this->tipo, section::get_modified_section_tipos_basic())
|| true===in_array($this->tipo, section::get_publication_section_tipos_basic())
){

$this->permissions = 2; // Allow all users to search with section info components


}else{

$this->permissions = common::get_permissions($this->section_tipo, $this->tipo);
Expand Down

0 comments on commit bb57283

Please sign in to comment.