Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[issue_tracker] Add attachments to issues #5394
[issue_tracker] Add attachments to issues #5394
Changes from 115 commits
18b1e88
3e8a2b7
7878b87
321669c
a7bb860
8043e50
94ac82a
796dc26
5dd4335
5c90663
6b43505
5838df9
64a86a0
68a6945
d860674
430fa65
fbed75d
9057fde
e19b2c6
43a1873
bcbd2e4
0899510
72b4fce
9c0e8ef
4852764
14e74c8
b192bd6
cb7193d
938d72c
6bb165d
fb5f076
0068527
a6869da
f289774
6ead18d
4f7f42f
9d28534
f0e1506
4e720b6
600f815
42d76ae
5984506
153f7b6
e81614f
d7af78f
526e9e0
d972426
0ac2127
bb0ae2b
72734d4
361971a
8421800
156ad05
e3e8c60
20df23a
ea80fbd
8a71d80
3d9b1ca
bb14f9f
da8ba49
2d42c63
9c1a1f2
5ec036b
2fb5bc2
93c7d05
5a93e62
75658c8
850ce38
f999308
04f9d93
cb7d7b9
c2ccb5d
6f24e8b
97957e1
6a48974
64a31f1
0a56012
af0458a
b1cb90a
735bc89
914cef9
0a57b10
7b77be4
85e1844
75e3ed3
27b6514
be19369
40b2a33
4c4c6fb
4907c13
70e8298
2fb49b6
079c1d9
136a1c9
3a14efe
d870e21
a8350df
dbc0026
423644e
0946231
21f47f4
001a386
96534bf
7a00c6a
81d6209
f78bd3d
936f9e7
6ed15c0
1648f02
21ec0e1
d2bc7e2
f5d71fb
9fbed50
a897d50
a6e1d09
49cc933
6d3f5a0
5a429b9
faacd30
318ae31
026ac1c
9206314
7ec5e9d
0aeb2ec
d4f00f9
9884b74
cd2742c
85efc59
5527b13
36c3a8b
0954149
36bc6ad
4a14a82
0d047d5
708f2cf
6df6225
7b67891
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 permission doesn't seem to actually exist.
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.
@johnsaigle the permission to check if the user can delete are there. I just added $user->hasPermission('issue_tracker') to _hasAccess.
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 one says view_all_sites though and that's not in the code.
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.
@johnsaigle I'm not sure if view_all_sites is supposed to be able to access the issues or just see the issues that have been made in the table when visiting issue_tracker. @jesscall do you know what view_all_sites should have access to when it comes to attachments or even viewing the issue? I'll ask Leigh as well. Edit: spoke to Leigh just now and she suggests I make it similar to issue_tracker_developer.
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.
I don't think
view_all_sites
exists as a permission in LORIS so you'll have to add it to your SQL files if you want to use it. If you do it should also be something likeissue_tracker_view_all_sites
so it's more clearThere 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.
@ridz1208 @driusan should the _hasAccess inside the issue_tracker/php/endpoints/attachment.class.inc contain hasAnyPermission for issue_tracker and view_all_sites or doesn't issue_tracker solve that.