Skip to content

Conversation

@driusan
Copy link
Collaborator

@driusan driusan commented Dec 20, 2022

This removes the exception from NDB_BVL_Instrument::factory(), so that it's possible to call hasAccess on an instrument. Currently the hasAccess or Factory call mix concerns, making it difficult for a module to check if a user has access to an instrument.

@driusan driusan added Category: Cleanup PR or issue introducing/requiring at least one clean-up operation Language: PHP PR or issue that update PHP code labels Dec 20, 2022
@driusan driusan force-pushed the InstrumentSeparateAccessCheck branch from be27b1f to 783e387 Compare December 20, 2022 14:53
@driusan driusan added the State: Blocking PR should be prioritized because it is blocking the progress of another task label Dec 21, 2022
@ridz1208 ridz1208 self-assigned this Feb 14, 2023
@driusan driusan force-pushed the InstrumentSeparateAccessCheck branch from 783e387 to 473bfea Compare February 15, 2023 18:52
true
);
if ($instrument->_hasAccess($user) == false) {
return new \LORIS\Http\Response\JSON\NotFound(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not Found?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

This removes the exception from NDB_BVL_Instrument::factory(), so that
it's possible to call hasAccess on an instrument. Currently the hasAccess
or Factory call mix concerns, making it difficult for a module to check
if a user has access to an instrument.
@driusan driusan force-pushed the InstrumentSeparateAccessCheck branch from 473bfea to a4784be Compare February 21, 2023 19:12
Copy link
Collaborator

@ridz1208 ridz1208 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one last comment

@driusan driusan merged commit 3929f99 into aces:main Feb 21, 2023
@ridz1208 ridz1208 added this to the 25.0.0 milestone Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Cleanup PR or issue introducing/requiring at least one clean-up operation Language: PHP PR or issue that update PHP code State: Blocking PR should be prioritized because it is blocking the progress of another task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants