Skip to content

Commit

Permalink
Merge pull request #1222 from tripal/1221-tv3-legacy_access
Browse files Browse the repository at this point in the history
Fixes bug in access to legacy pages.
  • Loading branch information
spficklin committed Aug 2, 2021
2 parents 483b9f3 + 76c0f4b commit a08a891
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ function tripal_analysis_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_analysis content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function tripal_contact_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_contact content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function tripal_feature_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_feature content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function tripal_featuremap_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_featuremap content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ function tripal_library_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_library content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function tripal_organism_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_organism content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ function chado_phylotree_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_phylotree content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function tripal_project_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_project content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
2 changes: 1 addition & 1 deletion legacy/tripal_pub/includes/tripal_pub.chado_node.inc
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ function tripal_pub_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_pub content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down
2 changes: 1 addition & 1 deletion legacy/tripal_stock/includes/tripal_stock.chado_node.inc
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ function tripal_stock_node_access($node, $op, $account) {
}
}
if ($op == 'view') {
if (!user_access('access chado_stock content', $account)) {
if (!user_access('access content', $account)) {
return NODE_ACCESS_DENY;
}
}
Expand Down

0 comments on commit a08a891

Please sign in to comment.