If a user doesnt have permission to see an entries attributes - but can see the entry, disable edit and dont attempt to render. Further, if they cant see the objectclasses, dont make additional attributes available

This commit is contained in:
2025-05-01 12:12:09 +09:30
parent b9ae269895
commit 5d23cbf0cc
3 changed files with 17 additions and 10 deletions

View File

@@ -397,10 +397,10 @@ class HomeController extends Controller
->with('o',$o)
->with('page_actions',collect([
'copy'=>FALSE,
'create'=>TRUE,
'delete'=>TRUE,
'edit'=>TRUE,
'export'=>TRUE,
'create'=>($x=($o->getObjects()->except('entryuuid')->count() > 0)),
'delete'=>$x,
'edit'=>$x,
'export'=>$x,
])),
'import' => $view,