News:

Looking for a good read? Check out the SimpleDesk Team Blog.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - clarinet

#1
Thank you for comments. I think will have a look at Wedge too, but now I already run SMF/SimpleDesk so it would not be easy to migrate.

EDIT: Looks like I will not have a look at Wedge at the moment - it seems it was not released yet.
#2
Well, I could not help myself ... it was not that hard. Edit file ./Sources/sd_source/Subs-SimpleDeskPermissions.php, replace line 364


$user_info['shd_permissions'][$perm] = $depts[$role];


with


if(is_array($user_info['shd_permissions'][$perm]))
$user_info['shd_permissions'][$perm] = array_merge($user_info['shd_permissions'][$perm],$depts[$role]);
else
$user_info['shd_permissions'][$perm] = $depts[$role];


I hope it's all that needs to be done. If you ever happen to see the original developer, please tell him. :-)
#3
Quote from: venguard223 on February 18, 2013, 06:28:39 PM
QuoteThe system just does not assign the user the union of all roles based on all this user's group memberships

It's supposed to be the union of all roles based on the membergroups the user is in.

Yes, I understand, this is what I expected. However, unless I keep repeating some stupid mistake, in reality it does work like this. The user is assigned just one role based on the first membergroup the user is in.

Quote from: venguard223 on February 18, 2013, 06:28:39 PM
QuoteI think it should not be very hard to repair, but if the author prefers complete rewrite, I can understand it.

Trust me, it is. A rewrite is by far the best solution.

I trust you, of course. I can imagine the code is extremely complicated as the relationships among objects and attributes are complex. As I found a workaround for my problem, it is solved for the moment and I will look forward to the rewritten version (if there are plans to release any).

In any case thanks to all authors, despite some small details it is an excellent job.
#4
The user has equal roles in all departments. All three roles (RoleA, RoleB, RoleC) are simple derivatives of the same role template "Helpdesk Users".

I checked the URL, but it contains nothing more than "index.php".

According to your explanation it seems that I will have to give it up ...  :-(

Edited 5pm local time:

After many tests I now see how it works. The system just does not assign the user the union of all roles based on all this user's group memberships,  but just a single role that corresponds to the first (or last, I am not sure) group this user is a member of.

So if I want a user to be assigned to two departments A and B, the only way is to:

a) create group GroupAB and make this user member of this group
b) make sure this user is not a member of GroupA, GroupB or GroupC or any other group that has defined a role in any department
c) create a role RoleAB that assigns members of GroupAB to departments A and B

It is not as elegant as one can imagine, but as I only need several combinations, I guess I can live with it. I think it should not be very hard to repair, but if the author prefers complete rewrite, I can understand it.


#5
SimpleDesk Support / Membership in multiple departments
February 15, 2013, 11:50:24 AM
Perhaps I am misinterpreting the Department philosophy, but I can't get it working as I would like to. I have three departments A, B, and C, and three groups GroupA, GroupB, and GroupC. Also, I have three roles: GroupA is assigned RoleA in department A, GroupB is assigned RoleB in department B, etc. (I tried to attach images/screenshots, but the server did not allow me to do so).

Now, when a user is member of two groups, GroupA and GroupB, I would expect this user should be able to submit tickets to both departments A and B. However, this user does not have an option to select or change department and his/her tickets are automatically submited to B. How can I enable this user to select proper department for the ticket? Or what is it that I miss? Thank you.