-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkp/pkp-lib#9658 user access table and table actions #437
Conversation
0c80398
to
cdde464
Compare
@withanage @ipula Whats missing is to determine which actions would be available to current user. Here is the logic from original table https://github.com/pkp/pkp-lib/blob/72087f4dabb1e80629b33639e3568501fd309fe2/controllers/grid/settings/user/UserGridRow.php#L84 Most complex likely is LoginAs. For that I would ask Hafsa, whether she could introduce it to the /users endpoint as well, because she worked on the reviewers - pkp/pkp-lib#10290 But meanwhile check whether the other checks (for other actions) would be easy to implement client side or whether there is also some additional complexity, where you don't have enough information client side and it would be necessary to calculate it server side. |
cdde464
to
7db26a9
Compare
We can check current user id matching with the userId in the actions in vuejs side and hide the actions that not allowed to by the same user. |
bfd167a
to
fdfa394
Compare
@jardakotesovec I added the permission check on the loginAs and mergeUser based on pkp/pkp-lib#10658. Please have a look |
fdfa394
to
f286ca7
Compare
83cb461
to
3ca9751
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Basically very minor comments.
Only additional thing I would like to ask you to improve flexibility on extensibility.
Good example is the getItemActions
, which will make possible to add some actions from plugin.
Using similar pattern and get list of columns from function so can we make possible to also add column from plugins?
Good example is here https://github.com/pkp/ui-library/blob/main/src/managers/GalleyManager/useGalleyManagerConfiguration.js#L59
@@ -44,6 +44,23 @@ | |||
:heading="t('user.affiliation')" | |||
:value="localize(store.invitationPayload.affiliation)" | |||
></FormDisplayItemBasic> | |||
<FormDisplayItemBasic | |||
v-if="store.invitationPayload.phone" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets handle this in separate PR. There will be more metadata to add I think anyway.
c8478ef
to
366325b
Compare
9fed7f5
to
343181b
Compare
3345565
to
9774bb7
Compare
No description provided.