Explorar o código

Epure Online, Hidden without Web Author

MaiXinRong %!s(int64=8) %!d(string=hai) anos
pai
achega
54410a35fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Frames/ProjectManagerFme.pas

+ 1 - 1
Frames/ProjectManagerFme.pas

@@ -1905,7 +1905,7 @@ procedure TProjectManagerFrame.actnSignOnlineUpdate(Sender: TObject);
   end;
 
 begin
-  TAction(Sender).Visible := G_IsCloud and (not IsGuest);
+  TAction(Sender).Visible := G_IsCloud and (not IsGuest) and (stdProjects.IDTree.Selected.Rec.ValueByName('WebAuthorID').AsInteger = PHPWeb.UserID);
   TAction(Sender).Enabled := (FSignOnlineSwitch = 1) and
        Assigned(stdProjects.IDTree.Selected) and
       (stdProjects.IDTree.Selected.Rec.ValueByName('Type').AsInteger = 1) and