Closed (fixed)
Project:
Localization client
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 May 2007 at 19:32 UTC
Updated:
22 May 2007 at 20:04 UTC
The administrator of the drupal website (userid = 1) should also be authorize to make translation even if he is not part of the og
if (!empty($user->og_groups[$locale])) {
$permission = !empty($user->og_groups[$locale]["is_admin"]) ? 2 : $user->og_groups[$locale]["is_active"];
}
would become something like :
if (!empty($user->og_groups[$locale]) || ($user->uid == 1)) {
$permission = ((!empty($user->og_groups[$locale]["is_admin"])) || ($user->uid == 1 ))? 2 : $user->og_groups[$locale]["is_active"];
}
Comments
Comment #1
brmassa commentedThierry,
thats right. fixed on CVS.
regrads,
massa
Comment #2
(not verified) commented