My Subscriptions

No active or expired subscriptions. View Available Subscriptions

News Feed

Receive our Newsletter

Advanced Search

Save $50 on your CMS Expo Registration

Receive $50 off the registration fee for the CMS Expo featuring Joomla! in Dever, Colorado (USA). Click here to register at the reduced rate.
Pages: [1]
Print
Author Topic: Jacl Plus and Jcal  (Read 721 times)
druckgott
Newbie
*

Karma: +0/-0
Posts: 6


View Profile
« on: April 13, 2007, 02:19:17 AM »

Hallo

I have a Problem. I´m using JaclPlus and Jcal 1.5.x. The Problem is I have a additional Usergroup "Vorstand". Now I have set in the Backend of the Jcal that this User can edit/publish Events. This works fine. But now as Admin I don´t see the edit button in the frontend. Does anybody have a solution, how I can change this?

druckgott
Logged
artmedia
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #1 on: May 09, 2007, 06:50:22 AM »

hope this dirty hack helps you because jcal does not really get the user groups right with jacl

in the file com_jcalpro/includes/functions.inc.php
change the line
if ( $acl->acl_check( 'content', $action, 'users', $my->usertype, 'calendar', 'all' ))

to:
if ( $acl->acl_check( 'content', $action, 'users', $my->usertype, 'calendar', 'all' ) or $my->usertype =="Super Administrator")

afterwards the super admin may do anything also on jacl groups
greetz
art-media
Logged
druckgott
Newbie
*

Karma: +0/-0
Posts: 6


View Profile
« Reply #2 on: May 09, 2007, 07:10:13 AM »

hey thx now it works.
Logged
haxx
Newbie
*

Karma: +0/-0
Posts: 1



View Profile WWW Email
« Reply #3 on: September 19, 2008, 12:19:04 PM »

This also works on the latest release

I changed

Code:
if ( $acl->acl_check( 'content', $action, 'users', JTEXT::_( $my->usertype), 'calendar', 'all' ))



To

Code:
if ( $acl->acl_check( 'content', $action, 'users', JTEXT::_( $my->usertype), 'calendar', 'all' ) or $my->usertype=="Super Administrator")



and it works.

It does crop up twice in the same file.

Paul
Logged

Sometimes the hardest fight is against yourself
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)