Jevents 2.x (Free Access)

"Add an event" visible for users without category

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support please follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

Postby bertha73 » Tue Oct 02, 2012 8:27 am

Hi

I'm running a system with user authorisation switched on, and have two frontend calendars showing distinct sets of categories. Authorised users are permitted to post in one or both of the sets of categories. Currently an authorised user sees the "Add an event" link for both calendars, even if he does not have authorisation to add events in the categories used by the calendar. Is it possible to hide the "Add an event" link for front-end calendars that only contain categories for which the user is not authorised to create events?

E.g.:

User A has authorisation for category A
User B has authorisation for category B
User C has authorisation for categories A & B

Front-end calendar A contains events for category A
Front-end calendar B contains events for category B

User A should not be able to see "Add an event" below front-end calendar B and user B should not see it below front-end calendar A. User C should see the link below both calendars.

Hope this makes sense. Currently, User A can create an event through front-end calendar B but cannot pick a category. No error message is shown, so it seems to the user that an event is created. Because the event is not categorised, it doesn't appear in the back-end, so cannot be edited...

Thanks for any assistance
Iwan
bertha73
 
Posts: 9
Joined: Fri Sep 14, 2012 8:14 am

Postby Geraint » Tue Oct 02, 2012 8:29 am

Unfortunately the Joomla code to generate a list of categories where a certain permission is allowed is VERY slow so we only use it where we absolutely have to i.e. on the event editing screen itself.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42799
Joined: Fri Feb 15, 2008 6:14 pm

Postby bertha73 » Tue Oct 02, 2012 10:34 am

In that case, would it be possible to prevent saving events without a category?

Iwan
bertha73
 
Posts: 9
Joined: Fri Sep 14, 2012 8:14 am

Postby Geraint » Tue Oct 02, 2012 1:29 pm

There is a javascript alert warning that does this - are you seeing a javascript error message in your browser's error console?
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42799
Joined: Fri Feb 15, 2008 6:14 pm


Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: Bing [Bot]