Entity Translation ctools access plugin checks against the translation status. When viewing an unpublished translation, the access rule, with 'Current content language' enabled, returns False, which results in the panel variant not being used.
I think this selection rule would return TRUE for both published and unpublished translations when appropriate given permissions to allow content authors to view unpublished translations as intended within the node variant. However, there maybe a use case for using two different variants for published and unpublished translations, which requires a configuration option.
Path forthcoming.
Comment | File | Size | Author |
---|---|---|---|
#3 | entity_translation-ctools-selection-rule-2656530-3.patch | 2.83 KB | jasonawant |
| |||
#2 | entity_translation-ctools-selection-rule-2656530-2.patch | 3.2 KB | jasonawant |
Comments
Comment #2
jasonawantThis patch provides a selection rule setting for translation status and performs necessary logic to grant/deny access depending on entity translation permissions.
Comment #3
jasonawantremoved unused $global user.