×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
ACL for specific item not working
Roman
New Member
Posts: 9
9 år 9 måneder siden - 9 år 9 måneder siden #630
af Roman
ACL for specific item not working blev oprettet af Roman
Hi all,
If I change ACL of specific item - I have no difference.
If I change ACL of component - works fine, but only in the list view. Also in this case users can edit all items.
As I see, for usergroup ( in item ACL - permission: Allow edit) parameter $canEdit is empty:(
So, ACL of specific item not working for me. What I need to do to take effect?
- clean Joomla 3.3.6
- component code wasn't changed.
- parent of usergroup "Registered"
Thanks,
If I change ACL of specific item - I have no difference.
If I change ACL of component - works fine, but only in the list view. Also in this case users can edit all items.
As I see, for usergroup ( in item ACL - permission: Allow edit) parameter $canEdit is empty:(
$canEdit = JFactory :: getUser () -> authorise ('core.edit', 'com_mycomponent.'. $ this-> item-> id);
(in file: components/com_[ComponentName]/views/[SingleViewName]/tmpl/default.php - line 12)
So, ACL of specific item not working for me. What I need to do to take effect?
- clean Joomla 3.3.6
- component code wasn't changed.
- parent of usergroup "Registered"
Thanks,
Sidste redigering: 9 år 9 måneder siden ved Roman. Begrundelse: text correcting
Venligst Log på eller Opret en konto for at deltage i samtalen
Roman
New Member
Posts: 9
9 år 9 måneder siden #631
af Roman
Besvaret af Roman på emne ACL for specific item not working
Ok, I found it.
After experiments with table and views, something wasn't updated.
in particular:- not working
but - working fine.
I'll recreate this component.
Regards,
After experiments with table and views, something wasn't updated.
in particular:
$canEdit = JFactory :: getUser () -> authorise ('core.edit', 'com_mycomponent.'. $ this-> item-> id);
but
$canEdit = JFactory :: getUser () -> authorise ('core.edit', 'com_mycomponent.viewName.'. $ this-> item-> id);
I'll recreate this component.
Regards,
Venligst Log på eller Opret en konto for at deltage i samtalen
Roman
New Member
Posts: 9
9 år 9 måneder siden #632
af Roman
Besvaret af Roman på emne ACL for specific item not working
Oops,
After recreating the problem not gone.
I found 2 mismatch at lines 12 and 13 in file
components/com_[ComponentName]/views/[SingleViewName]/tmpl/default.phpinstead of
For example, in this file at line 84 (delete button) wirking fine
Please, fix it.
Regards,
After recreating the problem not gone.
I found 2 mismatch at lines 12 and 13 in file
components/com_[ComponentName]/views/[SingleViewName]/tmpl/default.php
com_mycomponent.
com_mycomponent.viewname.
For example, in this file at line 84 (delete button) wirking fine
Please, fix it.
Regards,
Venligst Log på eller Opret en konto for at deltage i samtalen
Roman
New Member
Posts: 9
9 år 9 måneder siden #642
af Roman
Besvaret af Roman på emne ACL for specific item not working
Update.
Get 500 Error when save item at frontend (when edit permissions granted only in Item's ACL)
configuration:
- joomla 3.3.6 (clean)
- user in group Registered
- Editing permissions for user:
-- ACL global: inherit;
-- ACL of component: inherit;
-- ACL of item: allow edit and change state);
As I understand, this error generated in file [componentName]/models/[model]Forms.php
in taskat line 92What I need to change to avoid this error?
PS: maybe it help - noticed that if change this code as shown below, comment of my error is emptyThanks,
Get 500 Error when save item at frontend (when edit permissions granted only in Item's ACL)
configuration:
- joomla 3.3.6 (clean)
- user in group Registered
- Editing permissions for user:
-- ACL global: inherit;
-- ACL of component: inherit;
-- ACL of item: allow edit and change state);
As I understand, this error generated in file [componentName]/models/[model]Forms.php
in task
public function &getData($id = null)
if (!$canEdit) {
JError::raiseError('500', JText::_('JERROR_ALERTNOAUTHOR'));
}
PS: maybe it help - noticed that if change this code as shown below, comment of my error is empty
if (!$canEdit) {
JError::raiseError('500', $id);// comment of error replaced to $id
}
Venligst Log på eller Opret en konto for at deltage i samtalen
Andres Maeso
Platinum Member
Posts: 338
9 år 9 måneder siden #644
af Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Denne e-mail adresse bliver beskyttet mod spambots. Du skal have JavaScript aktiveret for at vise den.
Besvaret af Andres Maeso på emne ACL for specific item not working
Hi Roman
Thanks for reporting this, we will take a look and see what happens. Please, if you find any other bug, send it to Denne e-mail adresse bliver beskyttet mod spambots. Du skal have JavaScript aktiveret for at vise den.
Regards,
Andrés.
Thanks for reporting this, we will take a look and see what happens. Please, if you find any other bug, send it to Denne e-mail adresse bliver beskyttet mod spambots. Du skal have JavaScript aktiveret for at vise den.
Regards,
Andrés.
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Denne e-mail adresse bliver beskyttet mod spambots. Du skal have JavaScript aktiveret for at vise den.
Venligst Log på eller Opret en konto for at deltage i samtalen
Tid til at oprette siden: 0.056 sekunder