Skip to content

Commit

Permalink
avniproject#727 | Use appropriate privilege check that works for rule…
Browse files Browse the repository at this point in the history
…-server upload-user as well
  • Loading branch information
himeshr authored and shraddha761 committed Jul 3, 2024
1 parent 1cc4149 commit 9a62d8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public JsonObject uploadMedia(@RequestParam("url") String url,
public JsonObject getSubjectOrLocationObsValue(@RequestParam("type") String type,
@RequestParam("ids") String ids,
@RequestParam("formElementUuid") String formElementUuid) {
accessControlService.checkPrivilege(PrivilegeType.Analytics);
accessControlService.checkPrivilege(PrivilegeType.UploadMetadataAndData);
FormElement formElement = formElementRepository.findByUuid(formElementUuid);
JsonObject response = new JsonObject();
if (ConceptDataType.Location.toString().equals(type)) {
Expand Down

0 comments on commit 9a62d8c

Please sign in to comment.