fixed: cannot manage revisions in version tag

This commit is contained in:
Doug Bell 2008-06-13 21:51:19 +00:00
parent 0c13afe4de
commit f482c079d7
2 changed files with 3 additions and 0 deletions

View file

@ -60,7 +60,9 @@ sub canApproveVersionTag {
my $tag = shift;
my $user = shift || $session->user;
my $instance = $tag->getWorkflowInstance;
return 0 unless $instance;
my $activity = $instance->getNextActivity;
return 0 unless $activity;
# Check if this person is in one of the allowed groups
my $groupToApprove = $activity->can( 'getGroupToApprove' )