hltfbk / MT-EQuAl

a Toolkit for Manual Assessment of Machine Translation Output
Other
6 stars 3 forks source link

Data file update has no response #3

Closed pmarcis closed 9 years ago

pmarcis commented 9 years ago

I tried uploading some files (in the correct format), but the system just reloads the page - nothing happens. There is also no error message.

pmarcis commented 9 years ago

Found the issue - the root user does not have the rights to upload data.

I added a check for || $mysession["status"] == "root" in the add new sentence section and it works now.

cgirardi commented 9 years ago

The best is to permit the access to "root" and to leave out it from "advisor" (advisor user can not change the data). So I fixed the bug changing the line from: if (!empty($mysession["status"]) && ($mysession["status"] == "admin" || $mysession["status"] == "advisor")) {

to: if (!empty($mysession["status"]) && ($mysession["status"] == "admin" || $mysession["status"] == "root")) {

Thanks for your feedbacks!