This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "FusionForge".
The branch, 6.1 has been updated via 960dcd27f8979a4c7ee1ad2aca718cdc291b2472 (commit) from c41323183b59e619725281f1b813dc0d5b5f2410 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=960dcd27f8979a4c7ee1ad2aca718cdc291b2472 commit 960dcd27f8979a4c7ee1ad2aca718cdc291b2472 Author: Franck Villaume <franck.villa...@trivialdev.com> Date: Thu Jul 12 14:36:35 2018 +0000 fix vote check to align with permission check diff --git a/src/common/tracker/ArtifactType.class.php b/src/common/tracker/ArtifactType.class.php index b34a452..4a85050 100644 --- a/src/common/tracker/ArtifactType.class.php +++ b/src/common/tracker/ArtifactType.class.php @@ -1457,7 +1457,10 @@ class ArtifactType extends FFError { * @return bool true if they can */ function canVote() { - return forge_check_perm('tracker', $this->getID(), 'vote'); + if (in_array(user_getid(), $this->getVoters())) { + return true; + } + return false; } /** ----------------------------------------------------------------------- Summary of changes: src/common/tracker/ArtifactType.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) hooks/post-receive -- FusionForge _______________________________________________ Fusionforge-commits mailing list Fusionforge-commits@lists.fusionforge.org http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits