Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Role User does not work
#1
Recently installed: LetoDMS-3.0.0-RC5 and everything seems to be working OK except "role".

After installing, the User Role dropdown selector did not show "User" as an option, only a blank, Adminstrator and Guest. Both Administrator (can do everything) and Guest (read only) work fine.

In the file "LetoDMS_Core/Core/inc.ClassUser.php" the following are defined:

107 const role_user = '0';
108 const role_admin = '1';
109 const role_guest = '2';

242 function isAdmin()
244 function setAdmin($isAdmin)
255 function isGuest()
257 function setGuest($isGuest)

NO function isUser() NOR function setUser($isUser)

In the file "/Out/out.UsrMgr.php" the following line is supposed to show the items in the drop down list:

142 <td><select name="role"><option value="<?= LetoDMS_Core_User::role_user ?>"></option><option value="<?= LetoDMS_Core_User::role_admin ?>"><?php printMLText("role_admin"); ?></option><option value="<?= LetoDMS_Core_User::role_guest ?>"><?php printMLText("role_guest"); ?></option></select></td>

The following code snippet appears to be missing: <?php printMLText("role_user"); ?>

So I added it to the line, then I got the following error message in the drop down selection list:

Error getting Text: role_user (English)

In the file: "/languages/English/lang.inc" the following are defined:

326 $text["role_admin"] = "Administrator";
327 $text["role_guest"] = "Guest";

BUT NO role_user, so I added the following:

328 $text["role_user"] = "User";

NOW, if a ADD a new user, the selection "User" shows in the drop down list. However, if I attempt to edit an existing user the selection "User" does NOT show in the list, only the blank line again.

If I create a new user and select the role "User" the permissions are the same as for the role "Guest". So something is pooched.

Please advise. I need to have users who can read/write upload/download but without admin permissions.
Reply


Messages In This Thread
Role User does not work - by amwassil - 10-24-2011, 12:35 AM

Forum Jump:


Users browsing this thread: