ikramy not from CSS.
In the content
extender you can access the actor through $document->request->getAttribute('actor')
. EDIT: actually, not sure this works. The property appears to be protected
.
In the content
extender you can access the actor through the second parameter $request
, like ->content(function (Document $document, ServerRequestInterface $request){ $request->getAttribute('actor'); })
If you want to hide the disabled button, there should be a class name on the button you can look for in CSS.
If the disabled state is missing from the button when it should be present, it would be fantastic to fix it in Flarum and submit a PR 🤗 But reading the discussion I don't really understand what's going on. If there an issue, are you able to share steps so we can reproduce on a new Flarum install?
If the bug isn't reproductible on a new Flarum install it would be best to try and find which extension is causing it instead of creating a workaround for an issue of unknown origin.