1
Feng Office 2 / Re: Can't change user permissions
« on: March 19, 2014, 04:59:28 am »
A friend of my found a temporary fix for the module permissions.
It looks like Feng office is acting different on several operating systems.
He found this line:
It's to difficult for me to explain because I'm not a coder, but maybe he will give a reply later.
Anyway, to get a temporary fix you could do this:
on application/helpers/permissions.php at line 1252
change
And on top of the same file add this piece of code:
This will force the code to behave like if it's in windows environment.
@Fransisco, can you confirm that we can work with this tempory solution until the problem is realy solved?
Thanks!
Tim
It looks like Feng office is acting different on several operating systems.
He found this line:
Code: [Select]
if (substr(php_uname(), 0, 7) == "Windows" || (defined('DONT_SAVE_PERMISSIONS_IN_BACKGROUND') && DONT_SAVE_PERMISSIONS_IN_BACKGROUND)){
It's to difficult for me to explain because I'm not a coder, but maybe he will give a reply later.
Anyway, to get a temporary fix you could do this:
on application/helpers/permissions.php at line 1252
change
Code: [Select]
save_user_permissions_background($user, $pg_id, $is_guest)
toCode: [Select]
save_user_permissions_background($user, $pg_id, $is_guest = false)
And on top of the same file add this piece of code:
Code: [Select]
define('DONT_SAVE_PERMISSIONS_IN_BACKGROUND', true);
This will force the code to behave like if it's in windows environment.
@Fransisco, can you confirm that we can work with this tempory solution until the problem is realy solved?
Thanks!
Tim