Kayako logo
How do I? Questions about how to do specific things in SupportSuite, eSupport and LiveResponse. Not for reporting problems.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 346
Join Date: Feb 2007
Location: Lyon, France
Question How do i/Bug? Disallow ticket submission for a usergroup - 06-06-2007, 03:36 PM

The problem is not as simple as the title

Here is a sample:

my group "registered" has all the Permissions: Tickets set to NO
Quote:
Can View Submit Ticket Widget No
Can Submit Ticket No
Should Send Ticket Autoresponder No
Can Change Ticket Properties No
my account support1@blahblah.com is in the "registered" group.
on the user web-interface he can't see the submit a ticket (OK!)
but he can see the "view tickets" (feature request? should be hidden if no tickets created by the staff)

My main trouble is with the "can submit ticket" permission. If he can't "View Submit Ticket Widget " (option1) what's the point of this option.
Possible answer: "external script pointing directly to the addaticket page" (that'd be ok)
My problem: if the support1@blahblah.com submit a ticket via email queue (set to "only registered") the ticket get created and not rejected!
Question: is it a bug or i'm i missing the point with the "Can Submit Ticket" option

While i'm at it, lets suggest something (discuss it?)
When the staff create a ticket assigned to an email not registered it creates an account. My suggestion is that it should be nicer to add those accounts under a "autocreated" usergroup and not in "registered" one (that's confusing and we may only want the account to be restricted to guest permissions+can view his ticket&not submit one)


... hop! back to work... i'll continue to analyse the user registration/ticket workflow, so i should be back with more quesitons. I'm finding a lot a strange things (like those ones).


Greetings,
Antoine


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#2) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,308
Join Date: Apr 2007
Location: Toronto Canada
06-06-2007, 04:09 PM

Try clearing your cache folder. I have the same type of permissions and I don't see the "view ticket" or "submit ticket" widgets.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#3) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 346
Join Date: Feb 2007
Location: Lyon, France
06-06-2007, 04:36 PM

It was empty but i tried to empty it after every steps but i didn't change anything :\ I guess i have a bug... but well... that's not the main question i'll try to solve it later on.

Does anyone have the same "bug" as mine with the combo with "no submit" and "email submit"


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#4) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 346
Join Date: Feb 2007
Location: Lyon, France
07-06-2007, 01:35 PM

Quote:
Originally Posted by Siora View Post
Try clearing your cache folder. I have the same type of permissions and I don't see the "view ticket" or "submit ticket" widgets.
I took a look at the code.

Line 53 of "includes\Widgets\widgets.php"
PHP Code:
(!empty($_SWIFT["user"]["userid"]) && $module->isRegistered(MODULE_TICKETS)) 
there is no check of rights for the viewTickets like the one for submitTickets on line 63
PHP Code:
if ($module->isRegistered(MODULE_TICKETS) && $_SWIFT["user"]["permissions"]["perm_canviewsubmitticket"] != "0"
So this is not a bug and it's strange that you doesn't see the view ticket widget (did you modified this part of the code?)

I'll try to make this modification, if it's not already done.





No one for the problem with the email queue??


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 07-06-2007 at 01:38 PM.
   
Reply With Quote
  (#5) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,308
Join Date: Apr 2007
Location: Toronto Canada
07-06-2007, 01:47 PM

Well currently I disabled all widgets except for the register and news widget for my guest group. When I visit my site i only see those two widgets and I did not modify the code.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#6) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 346
Join Date: Feb 2007
Location: Lyon, France
07-06-2007, 01:57 PM

Quote:
Originally Posted by Siora View Post
Well currently I disabled all widgets except for the register and news widget for my guest group. When I visit my site i only see those two widgets and I did not modify the code.
so that's where there is a missundersting
I'm working with a REGISTERED user logged in with "show submit ticket" disabled
So this a Feature Request But i'll do it myself after i fix bugs.


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#7) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,308
Join Date: Apr 2007
Location: Toronto Canada
07-06-2007, 02:03 PM

it shouldn't matter whether it is the guest group or registered group. Let me test it with my registered group and see what i come up with.

EDIT: You're right, I turned off all my settings for the registered group and the "view tickets" widget still appears. I think that is a bug since it is not functioning as it is supposed to. I would submit a bug report.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#8) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 346
Join Date: Feb 2007
Location: Lyon, France
07-06-2007, 02:11 PM

That's not a bug as the registered user might have tickets oppened by the staff. So the view widget is still here to show em but the user won't be able to open a new one. (FEATURE: but it should be upgraded by hiding the widget if the user has no tickets opened by the staff)
BUT: the bug comes with the emailqueue, if this user sends an email in the queue, then a ticket get created as he's registered. The queue doesnt' check his group permission. (the BUG i'm pointing out since the beginin )


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#9) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,308
Join Date: Apr 2007
Location: Toronto Canada
07-06-2007, 02:18 PM

Quote:
Originally Posted by Sheep View Post
That's not a bug as the registered user might have tickets oppened by the staff. So the view widget is still here to show em but the user won't be able to open a new one. (FEATURE: but it should be upgraded by hiding the widget if the user has no tickets opened by the staff)
BUT: the bug comes with the emailqueue, if this user sends an email in the queue, then a ticket get created as he's registered. The queue doesnt' check his group permission. (the BUG i'm pointing out since the beginin )
I see what you mean, okay I'll step out of your way. Thanks for clearing that up.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
Reply

Tags
disallow, i or bug, submission, ticket, usergroup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46