File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -712,7 +712,9 @@ public function Actions()
712712 $ action = false ;
713713 switch ($ perm ) {
714714 case "edit " :
715+ if (!$ this ->item ->canEdit ()) continue ;
715716 case "view " :
717+ if (!$ this ->item ->canView ()) continue ;
716718 $ actions ->push (new DataObjectManagerAction (
717719 $ this ->ViewOrEdit_i18n (),
718720 $ this ->EditLink (),
@@ -724,6 +726,7 @@ public function Actions()
724726 break ;
725727
726728 case "delete " :
729+ if (!$ this ->item ->canDelete ()) continue ;
727730 $ actions ->push (new DataObjectManagerAction (
728731 _t ('DataObjectManager.DELETE ' ,'Delete ' ),
729732 $ this ->DeleteLink (),
@@ -735,6 +738,7 @@ public function Actions()
735738 break ;
736739
737740 case "duplicate " :
741+ if (!$ this ->item ->canCreate ()) continue ;
738742 $ actions ->push (new DataObjectManagerAction (
739743 _t ('DataObjectManager.DUPLICATE ' ,'Duplicate ' ),
740744 $ this ->DuplicateLink (),
You can’t perform that action at this time.
0 commit comments