[Rt-commit] rt branch, 5.0/hide-pencil-button-if-no-rights, repushed

Michel Rodriguez michel at bestpractical.com
Mon Apr 6 10:07:04 EDT 2020


The branch 5.0/hide-pencil-button-if-no-rights was deleted and repushed:
       was fe851269c4f26f292799345d089d14d440301d9c
       now 17ff02d4b9b1f1db142dc193b5aed7e19a02a262

1: 698258c750 = 1: 698258c750 Bug fix: use the right CurrentUserCanSetOwner return value.
2: fe851269c4 ! 2: 17ff02d4b9 Hide the pencil icon if the user doesn't have the rights.
    @@ -20,11 +20,17 @@
          <&| /Widgets/TitleBox, title => loc('The Basics'),
              (($can_modify || $can_modify_cf) ? (title_href => $modify_url) : ()),
     -        ($modify_behavior =~ /^(link|click)$/ ? (titleright_raw => $modify_basics) : ()),
    -+        ( $modify_basics && $modify_behavior =~ /^(link|click)$/ ? ( titleright_raw => $modify_basics ) : ()),
    ++        ( $modify_basics ? ( titleright_raw => $modify_basics ) : ()),
              class => (join " ", 'ticket-info-basics', ($modify_behavior eq 'always' ? 'editing' : ())),
              data => { 'inline-edit-behavior' => $modify_behavior },
          &>
     @@
    +     <& /Elements/ShowCustomFieldCustomGroupings,
    +         Object       => $Ticket,
    +         title_href   => ($can_modify || $can_modify_cf) ? RT->Config->Get('WebPath')."/Ticket/Modify.html" : "",
    +-        InlineEdit   => $InlineEdit,
    ++        InlineEdit   => ($can_modify || $can_modify_cf) ? $InlineEdit : 0,
    +         &>
      
      <%PERL>
      my $people_url = RT->Config->Get('WebPath')."/Ticket/ModifyPeople.html?id=".$Ticket->Id;



More information about the rt-commit mailing list