Author Topic: Can't change user permissions  (Read 19370 times)

travisjohng

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Can't change user permissions
« Reply #15 on: April 05, 2014, 01:39:53 am »
aSseptic

Thank you so much for finding the cure.
I spent 2 days looking for the solution and your solution actually solved it.

I notice on latest upgrade, line 1252 has been changed as you said, but "define" was not added.
I just copied and paste define('DONT_SAVE_PERMISSIONS_IN_BACKGROUND', true); at the top of the permission.php
and it worked finally.

Thanks again




franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Can't change user permissions
« Reply #16 on: May 09, 2014, 11:36:50 am »
Just as a note, future reference and follow up, this fix has been applied some versions ago already. So whoever has servers that are not compatible with some settings should no longer experience this issue.

Thank you again once more for your findings, greatly appreciated! :)

Best regards,
Francisco
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!

tooliload

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Can't change user permissions
« Reply #17 on: May 18, 2014, 11:25:14 am »
@aSeptik: The only one Hero. Thank you. Your Fix work fine.

sinan

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Can't change user permissions
« Reply #18 on: August 12, 2014, 11:50:38 am »
Hi,
@sSeptik Thank you very very much. Your fix work fine.

We  migrate fengofice from windows to linux suse platform. after this migration the issue occured.  feng office version is 2.6.3 but the issue is continue this last version.

Best Regards
sinan

kientaoviet

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • thiet ke chung cu
Re: Can't change user permissions
« Reply #19 on: September 08, 2014, 06:23:37 am »
it's true I also very problem

seofw

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: FIX - Can't change user permissions
« Reply #20 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.
« Last Edit: September 30, 2014, 10:30:22 am by seofw »

thinkevd

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Can't change user permissions
« Reply #21 on: October 03, 2014, 03:08:13 pm »
yes, that's wired.
Seem's the new user I added has a empty workspace.
I'm using 2.7.11, it's installed in Bluehost Cpanel.
Any suggestion?

Stihotvor

  • Guest
Re: Can't change user permissions
« Reply #22 on: December 06, 2014, 05:37:34 pm »
It seems that there is no any improvement in new version... Should I do it in my file too? Cause I have the same problem...

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Can't change user permissions
« Reply #23 on: December 17, 2014, 01:47:26 pm »
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

RayGauthier

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Can't change user permissions
« Reply #24 on: December 17, 2014, 03:10:22 pm »
@tverdouw  - just a quick note of thanks.  I'm using 3.0-beta and those fixes worked for me!