Skip to content

Commit

Permalink
[WIP] debugging access restriction detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-sul committed Nov 18, 2023
1 parent 9925aba commit 15966ea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default class extends Controller {
displayMessage(event) {
const authResponse = event.detail
const status = authResponse.status
console.log(`auth_restriction_controller.displayMessage: staus=${status}`)
if (status.includes('embargoed')) { // Embargo check must come before stanford_restricted, because both can occur together
if (status.includes('stanford_restricted'))
this.displayEmbargoAndStanfordRestriction(authResponse.embargo, authResponse.service)
Expand Down

0 comments on commit 15966ea

Please sign in to comment.