Hi everybody and thanks for this valuable component !
I got a couple of things for you. One is a note:
I maybe found the reason why the "
Frontpage Add" tick stays off
even when selected. I'm talking about the access adapter
(1.5.3) in the "
Manage content" section.
The error is in
/adapters/access/views/general/tmplt/default.php:
Code:
<td>
<?php
$haveAccess = $this->checkAccess('com_content','add','users',$groupName,'content','all');
?>
<input type="checkbox" <?php if( $haveAccess ): ?> checked="checked" <?php endif; ?> name="ada_access[com_content][]" value="add;" />
</td>
</tr>
<tr>
<td width="150" class="key">
<label for="name">
<?php echo JText::_( 'Frontpage Edit All' ); ?>
</label>
</td>
<td>
<?php
$haveAccess = $this->checkAccess('com_content','edit','users',$groupName,'content','all');
?>
<input type="checkbox" <?php if( $haveAccess ): ?> checked="checked" <?php endif; ?> name="ada_access[com_content][]" value="edit;content;all" />
</td>
other entries got 3 values ;separated, while the "add" one doesn't. I
tried to correct it like that
Code:
<td>
<?php
$haveAccess = $this->checkAccess('com_content','add','users',$groupName,'content','own');
?>
<input type="checkbox" <?php if( $haveAccess ): ?> checked="checked" <?php endif; ?> name="ada_access[com_content][]" value="add;content;own" />
</td>
</tr>
<tr>
<td width="150" class="key">
<label for="name">
<?php echo JText::_( 'Frontpage Edit All' ); ?>
</label>
</td>
<td>
<?php
$haveAccess = $this->checkAccess('com_content','edit','users',$groupName,'content','all');
?>
<input type="checkbox" <?php if( $haveAccess ): ?> checked="checked" <?php endif; ?> name="ada_access[com_content][]" value="edit;content;all" />
</td>
As you can see, I changed the values so that one can add articles
in his own category (?).
But I got a serious problem. I created a group under Publisher. In the
content adapter I sat the correct category on which to do managing
stuff (adding, publishing deleting.. all). I created a user adding it to
this group and finally I sat all general access permissions to my group.
So I got:
Publisher ->
MYGROUPMYUSER => MYGROUP
MySection (public)
MyCategory (public)
Content adapter (backend)
MYGROUP => MyCategory (all)
Access adapter (general)
MYGROUP (all)
I checked all the checkbox as a very easy case, but MYUSER
is unable to post content nor to see
edit or
add icons from the
category list view of MyCategory (as you show in your example, Project 2).
It seems that noix recognize it not as a Publisher
(MYGROUP's parent entry)but as a normal powerless registered user..
When it tries to submit an article, in the right category, joomla
hits a 403 forbidden error, like if the user has no authoring privilege
(while supposed to be publisher !)
If I switch MYUSER from MYGROUP to Publisher, than everything
works, but now it can act on all categories, and not just over
MyCategory. Am I missing something ? I got all the adapters
(1.5.5 and not 1.5.7 for the content, 1.5.3 for the access, 1.0
for modules and 1.5.1 for menus. Component is 2.0.6 and system
plugin 2.0.11)
I thought that setting Publisher as a parent group for MYGROUP,
all privileges would go down to its children, so that MYGROUP
could be a special publisher, authorized to modify ONLY MyCategory.
What happens, insted, is that MYGROUP is nothing more than Registered.
Why ?
Thanks alot !!!!
Yeah that would be correct, there is no inhereiting permission in noixacl, the parent is used for logical organisation. I assued the same thing but after speeking with the developer they said its just for logic!
Sorry...