Permissions-[Solved]

More
13 years 6 months ago - 12 years 9 months ago #15450 by aloisio
Permissions-[Solved] was created by aloisio
Using flexicontent and flexiaccess in joomla 1.5.22, I created the category "alex academical".
In this sistem I created:
-The administrator "Peter" has permision to submit articles to this category.
-The administrator "Mary" also has permision to submit articles to this category.
- Peter and Mary has permision to view this articles.
To both, Peter and Mary I created a formulary to submit articles in this category.
I had proved the formularies: OK.
I had proved the menues to view the articles: OK
The menu to view the articles of this category is the same to all users.
But, when I add another administrator user to send and view articles, with the same permissions of Peter and Mary, the sistem had changed the Peter's and Mary's permissions.
Peter and Mary already can't view the articles, just after I put the view's permision to the new user.
To understand what is happening, I create another menu's item, equal to first, to Peter and Mary. This new item's menu solve the problem. The permissions are correct now.
Last edit: 12 years 9 months ago by aloisio.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #15459 by micker
Replied by micker on topic Permissions-[Solved]
strange ... with flexiaccess ?
and you read this ?
flexicontent.org/documentation/f ... items.html
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #15463 by aloisio
Replied by aloisio on topic Permissions-[Solved]
Yes, with flexiaccess, and with the code changed. A copy of changed code:
Code:
<?php // no direct access defined('_JEXEC') or die('Restricted access'); if ( ! defined('modMainMenuXMLCallbackDefined') ) { function modMainMenuXMLCallback(&$node, $args) { $user = &JFactory::getUser(); $menu = &JSite::getMenu(); $active = $menu->getActive(); $path = isset($active) ? array_reverse($active->tree) : null; if (($args['end']) && ($node->attributes('level') >= $args['end'])) { $children = $node->children(); foreach ($node->children() as $child) { if ($child->name() == 'ul') { $node->removeChild($child); } } } if ($node->name() == 'ul') { foreach ($node->children() as $child) { if (FLEXI_ACCESS) { if (!FAccess::checkAllItemReadAccess('com_content','read','users',$user->gmid,'menu',$child->attributes('id'))) { $node->removeChild($child); } } else { if ($child->attributes('access') > $user->get('aid', 0)) { $node->removeChild($child); } } } } if (($node->name() == 'li') && isset($node->ul)) { $node->addAttribute('class', 'parent'); } if (isset($path) && (in_array($node->attributes('id'), $path) || in_array($node->attributes('rel'), $path))) { if ($node->attributes('class')) { $node->addAttribute('class', $node->attributes('class').' active'); } else { $node->addAttribute('class', 'active'); } } else { if (isset($args['children']) && !$args['children']) { $children = $node->children(); foreach ($node->children() as $child) { if ($child->name() == 'ul') { $node->removeChild($child); } } } } if (($node->name() == 'li') && ($id = $node->attributes('id'))) { if ($node->attributes('class')) { $node->addAttribute('class', $node->attributes('class').' item'.$id); } else { $node->addAttribute('class', 'item'.$id); } } if (isset($path) && $node->attributes('id') == $path[0]) { $node->addAttribute('id', 'current'); } else { $node->removeAttribute('id'); } $node->removeAttribute('rel'); $node->removeAttribute('level'); $node->removeAttribute('access'); } define('modMainMenuXMLCallbackDefined', true); } modMainMenuHelper::render($params, 'modMainMenuXMLCallback');

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.373 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline