Skip to content

Commit 2e090e3

Browse files
committed
#727 | Use appropriate privilege check that works for rule-server upload-user as well
1 parent b5f83ff commit 2e090e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avni-server-api/src/main/java/org/avni/server/web/ImportController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public JsonObject uploadMedia(@RequestParam("url") String url,
156156
public JsonObject getSubjectOrLocationObsValue(@RequestParam("type") String type,
157157
@RequestParam("ids") String ids,
158158
@RequestParam("formElementUuid") String formElementUuid) {
159-
accessControlService.checkPrivilege(PrivilegeType.Analytics);
159+
accessControlService.checkPrivilege(PrivilegeType.UploadMetadataAndData);
160160
FormElement formElement = formElementRepository.findByUuid(formElementUuid);
161161
JsonObject response = new JsonObject();
162162
if (ConceptDataType.Location.toString().equals(type)) {

0 commit comments

Comments
 (0)