-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Data Release Module #1602
Data Release Module #1602
Conversation
@nicolasbrossard Check ca - ben don cool. |
Current coverage is
|
} | ||
header("Location: ../main.php?test_name=data_release&uploadSuccess=true"); | ||
} else { | ||
echo "There was an error uploading the file"; |
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 should include a 400 Bad Request header too.
); | ||
$uid = $db->pselectOne( | ||
"SELECT ID FROM users WHERE " | ||
. "UserID='{$user->getUsername()}'", |
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 should be a prepared statement.
c2c3117
to
08ccc45
Compare
Please make note that deleting access or releases is not implemented. |
'data_release_id' => $data_release_id, | ||
) | ||
); | ||
header("Location: /data_release/?addpermissionSuccess=true"); |
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 is missing the baseURL so won't work on things not installed directly on the host @Jkat
Thanks @driusan, fixed. |
FILE: ...vis/build/aces/Loris/modules/data_release/ajax/AddPermission.phpFOUND 1 ERROR AFFECTING 1 LINE27 | ERROR | [x] Whitespace found at end of linePHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY |
. " data_release_permissions drp" | ||
. " ON (dr.id=drp.data_release_id)" | ||
. " JOIN users u ON (u.ID=drp.userid)" | ||
. " WHERE u.UserID='{$user->getUsername()}'"; |
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.
use DBquote
You can package your releases and distribute them here.