1
Feng Office 2 / Re: FIX - Can't change user permissions
« on: September 30, 2014, 09:48:46 am »Hi all,
I'm the friend of tverdouw
this is a real problem (bug) that occur only with fengoffice running under UNIX machine.
the bug is located in the /application/helpers/permissions.php file and affects two functions save_member_permissions_background and save_user_permissions_background
the problem is the call of the exec function without any check. infact if the function is disabled, does not exists or simply we don't have privileges to use it, the error occur.
a possible solution can be to add something like the code below at the top of the permissions.php file
https://gist.github.com/aSeptik/9643471
hope this help
Luca Filosofi
The problem still exists with version 2.7.1.1
With the suggested code at the top of the permissions file the module permissions are now saved.
it still has problems with workspace permissions though when editing permissions from a user. When I change the permission from one option of a workspace (expl. Read only to Read & Write for Time) it resets all other to Read Only. The only way I can make sure that all permissions are set correctly is to set all Workspace Options to Read Only, save, then modify the user's permissions again to set the correct/new workspace permissions. Alternatively, I can also set the correct permissions by setting them for each user inside the settings of a workspace instead of inside the permissions of a user.