Skip to content
Permalink
Browse files

Only logged in users can add karma to updates.

Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
  • Loading branch information...
mattiaverga authored and mergify committed Jul 23, 2018
1 parent b22b014 commit 3b551c3232ba04e2d3840cf1454ec4943eee3339
Showing with 19 additions and 4 deletions.
  1. +16 −1 bodhi/server/templates/update.html
  2. +3 −3 docs/user/testing.rst
@@ -767,7 +767,22 @@ <h5 class="m-t-2">
<td data-class="danger"> <input type="radio" name="karma" value="-1"> </td>
<td> <input type="radio" name="karma" value="0" checked> </td>
<td data-class="success"> <input type="radio" name="karma" value="1"> </td>
<td>Is the update generally functional?</td>
% if not request.user:
<td>
<p class="text-muted">Is the update generally functional? (karma)</p>
<p class="text-danger" style="font-size: 0.8rem;">You need to be logged in to add karma!</p>
<script type="text/javascript">
$(document).ready(function(){
var karmaRadio = document.getElementsByName("karma");
for(var i=0, iLen=karmaRadio.length; i<iLen; i++) {
karmaRadio[i].disabled = true;
}
});
</script>
</td>
% else:
<td>Is the update generally functional? (karma)</td>
% endif
</tr>

</table>
@@ -15,9 +15,6 @@ describe their experience. Once the update reaches its karma threshold (set by t
be pushed out to the stable repositories. This will happen automatically if the update is configured
to use Bodhi's autokarma system, or manually by the packager if it is not.

Unauthenticated users are able to post unofficial karma and comments to the update, but the karma
will not be counted towards the update's overall karma and is left for the packager to consider.

Some updates will offer testers additional types of karma. Critical path updates will offer the user
a "critical path karma" option, which asks the tester if the system's basic functionality is
preserved with the update (for example, does the system still boot). Some updates are associated
@@ -26,6 +23,9 @@ bug is addressed by the update. Updates may also be linked to Wiki documents tha
plan for the associated packages, and the tester may provide feedback for each of the wiki test
pages as well.

Unauthenticated users are only able to post comments and additional types of karma to the update, but
they're not allowed to add votes to the main karma.


Automated tests
===============

0 comments on commit 3b551c3

Please sign in to comment.
You can’t perform that action at this time.