mccrodp / message_ui

UI for the Message module
https://www.drupal.org/project/message_ui
0 stars 1 forks source link

Fix infinite loop in Access classes on 'edit' operation #3

Closed mccrodp closed 8 years ago

mccrodp commented 8 years ago

See attached backtrace. message-ui-edit-loop.pdf

access and checkAccess are both called in loop.

mccrodp commented 8 years ago

Fixed infinite loop, but checkAccess class is effectively repeating access to avoid infinite loop in the Access Control Handler. It is working but is likely not best approach.

https://github.com/mccrodp/message_ui/blob/8.x-1.x/src/MessageUiAccessControlHandler.php