Skip to content

Commit 3ee01da

Browse files
authored
Also fix oe_translation_post_update_0002().
The previous commit only fixed oe_translation_local_install().
1 parent 7db5713 commit 3ee01da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

oe_translation.post_update.php

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ function oe_translation_post_update_0001(&$sandbox = NULL) {
2424
*/
2525
function oe_translation_post_update_0002(&$sandbox = NULL) {
2626
$role = Role::load('oe_translator');
27+
if (!$role) {
28+
return;
29+
}
2730
$role->grantPermission('accept translation request');
2831
$role->grantPermission('sync translation request');
2932
$role->save();

0 commit comments

Comments
 (0)