Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 10:54 am (All times are UTC )

 


Forum rules

Global Rules
Additional Rules for this forum <------- Please read before posting



Post new topic Reply to topic  [ 182 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
Author Message
 Post subject: Re: noix ACL
Posted: Mon Oct 19, 2009 2:44 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
i fixed the comma bug (when updating an access level).
how i can be sure if the fix was ok or not??
i added a function that deleted all the old records concerning the access level, then add (instead of update) for all the new selected groups.
I dont know if this is how it's supposed to be fxed.


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Tue Oct 20, 2009 1:49 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Dec 12, 2007 2:40 am
Posts: 209
Location: Frisco, CA
Thanks, it was a nice time. My girlfriend actually won a contest for a bungalow on the coast for a couple of days. 8)

Another problem is that the new system plugin fix doesn't go all the way as far as granting the superadmin default permissions. This to me is a real bugbear because for example, every time I (or my customer) adds a section or category, they will have to go to the adapter and grant permission... or the new section is not available in the editor. And then there's administrators and managers to set up if you use them... This is a lot of trouble, especially to expect from a non-Joomla pro.

I don't understand the reasoning behind bottom up permission granting, or see how it's somehow more secure. I think each group should have the same permissions as stock Joomla by default. Noix seems like a great effort and is almost there... but unless these things are fixed it's unusable to me as-is.


Top
   
 
 Post subject: Re: noix ACL
Posted: Tue Oct 20, 2009 6:48 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
yes i noticed that too.
I tried to install the noixacl2.0.6 only, and it' working without installing the other modules and plugins.

ewm, what is the "plg_system_2.0.11"?? I mean what is the additional thing it provides?


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Tue Oct 20, 2009 11:12 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
In the noixacl_groups_level table, there are two fields:
id_group and id_levels.
Which one of them carries the level id and which one carries the groups ids?
Looks like the group_id is the primary key of this table, but in fact the level_id should be, because each level can have many groups assigned to it.

Is the table was originally implememnted so that it holds the selected groups of an access level in the form ("32,18,19")?
I editted the saving function so that it inserts all the groups of an access level in the above from. But when i select an access level, all check boxes are unchecked!!
I think its something in the view.

ewm, just to be sure, is it you who created NOIX? If yes please can you tell which way should the access levels be saved?
thanks,


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Tue Oct 20, 2009 9:21 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue May 20, 2008 3:11 pm
Posts: 2
Hi, i'm getting an issue when trying to edit an article in the backend.
Categories and sections for the article are not showing up in the pull down menu. I have to save as "uncategorized"....any advice?

Please help!

thanks


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Tue Oct 20, 2009 11:00 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Dec 12, 2007 2:40 am
Posts: 209
Location: Frisco, CA
Sounds like you need to grant the super administrator (or whatever admin group you're using) permissions for those categories, which is just what we were talking about.

Zahraa, I'm not totally sure but I think it's joomila's baby.

Quote:
In the noixacl_groups_level table, there are two fields:
id_group and id_levels.
Which one of them carries the level id and which one carries the groups ids?
Looks like the group_id is the primary key of this table, but in fact the level_id should be, because each level can have many groups assigned to it.


Id_group in the noix table seems to correspond with ID from jos_core_acl_aro_groups. There's another table for multi-groups so that's probably why he did it that way. I'm sure there's a reason for it, but I know I'm not being much of a help.


Top
   
 
 Post subject: Re: noix ACL
Posted: Wed Oct 21, 2009 10:27 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
i called this function in the "save" function in "administrator\components\com_noixacl\controllers\accesslevels.php".

Code:
function preSave($id_level,$name){
      $db = $this->getDBO();
      $query = "DELETE FROM {$this->_tbl} WHERE id_group =".$id_level;
      $db->setQuery($query);
      $ret = $db->query();
      $query= "UPDATE #__groups SET name = '$name' WHERE id='$id_level';";
      $db->setQuery($query);
      $ret = $db->query();
      //add the access level to the article.xml
      $filename = "components/com_content/models/article.xml";
      $xmlfile = simplexml_load_file($filename) or die("We were not able to edit the article.xml file. You should edit it manually.");
      $data = new SimpleXMLElement($xmlfile->asXML());
      unset($data->params[0]->param[2]->option);
      //Insert the rows from the DB
      $query= "SELECT * from #__groups;";
      $db->setQuery($query);
      $ret =$db->query();
      while($row=mysql_fetch_array($ret)){
         $newoption=$data->params[0]->param[2]->addChild("option",$row['name']);
         $newoption->addAttribute('value',$row['id']);
      }
      mysql_free_result($ret);
      //commit changes and close file.
      fclose($xmlfile);
      $data->asXML($filename);
   }


i changed some variables too so that the access level groups are saved in one record in the form (g1,g2,g3).

please tell me if there is any problem in that.

thanks,


Last edited by Zahraa on Wed Oct 21, 2009 12:26 pm, edited 1 time in total.

Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Wed Oct 21, 2009 10:59 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
jpcorti, maybe you should disable the adapters.
hope this works


unleash.it,
i thought the multi-groups is for assigning multiple groups to a single user.
it has nothing to do with access levels.

and if the id_group is related to the group in the core_acl_aro_groups, why is it declared as the primary key?
does this mean that the group can only have one access level?
this should be explained by the one who created the component..

hope the answer comes fast. I need to install the component on the client site.

Thanks,


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Thu Oct 22, 2009 8:36 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Oct 20, 2009 10:04 pm
Posts: 2
If I create a group under Publisher, does it have actual publisher privileges ? I would like to create a group (under Publisher or Editor) able to add and modify data, from frontend, JUST inside a specific category. If group1, son of publisher, is assigned category1, it mustn't have writing rights to category2.

It seemes that's impossibile to limit partially this function.. either simple registered user or allmighy publisher. Am I missing somenthing ?


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Thu Oct 22, 2009 12:05 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Hallo Zahraa & others,

1) We can restrict access to some components for backend user (manager etc), but there is no option to restrict NoIX-ACL component (NoixACL -> Manager groups -> access option). Is there another trick to restrict access to NoIX component for backend user ?
note: I have give access for manager to see 'component menu' at backend via ..../libraries/joomla/user/authorization.php

In this file there is only 'addACL' , no 'restrictACL' or 'blockACL' :)

2) How to hide the 'section manager' & 'category manager' under content menu for backend user ?
Which xml/php file must be edited ?

Thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Thu Oct 22, 2009 1:41 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
I'm using access levels for configuring the user access to the articles and menu items.
it's veryyyyyyyyyyy easy.

just create the access levels you want and when creating an article or menu item, you need to set the access level to the desired level.

It's very simple.
Big thanks to the one who created it.


I have a question:
sometimes when i add a user or a group, they are not displayed in the admin section, but they exist in the DB.
I think there are some constraints on the numbers and names of the groups and users. Also the access level name can't accept numbers (AccessLevel1 is taken as AccessLevel).
Please help me with this


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Thu Oct 22, 2009 2:16 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
pedmajungne,
your first question is confusing!!
how can someone access this component? it's not a module!!!


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 1:54 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
pedmajungne,
your first question is confusing!!
how can someone access this component? it's not a module!!!


Hi Zahraa,

This is what I did :
edit file .../libraries/joomla/user/authorization.php

GRANT ACCESS to show Component menu:
$this->addACL( 'com_components', 'manage', 'users', 'manager' );

NOT GIVE ACCESS to contact etc ..
// $this->addACL( 'com_contact', 'manage', 'users', 'manager' );
// $this->addACL( 'com_banners', 'manage', 'users', 'manager' );

with this trick, if we login as manager, we can see the component menu at backend ...
If we click at banners or contact component, it will not work ... -> Good

But, we can also see the link for NoIX ACL, and it's works for all backend user ... -> BAD

I still can't find how to block this ... :(

Thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 2:27 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
I'm using access levels for configuring the user access to the articles and menu items.
it's veryyyyyyyyyyy easy.

just create the access levels you want and when creating an article or menu item, you need to set the access level to the desired level.

It's very simple.
Big thanks to the one who created it.


I have a question:
sometimes when i add a user or a group, they are not displayed in the admin section, but they exist in the DB.
I think there are some constraints on the numbers and names of the groups and users. Also the access level name can't accept numbers (AccessLevel1 is taken as AccessLevel).
Please help me with this



Hi Zahraa,

Do you mean 'access level' is via : Manage Group -> Adapter -> Access ...
or via : Manage Levels -> create a new level ?

If via 'Manage Levels' , there is only Multigroup option, nothing else ...
If via 'Manager groups' :

*) create new group 'test' with parent 'public backend'
*) Adapter -> access : block all, execpt : com_content & com_joomfish for both administrator & site
*) Adapter -> access -> general : give access to manage_menu, manage_frontpage, frontpage_edit_all, frontpage_edit_own, frontpage_public

*) Adapter -> content : grant ALL access to all sections
*) Adapter -> menu : grant ALL access to new menu created

After create a new article, publish it, create a new menu via menu manager & try to add a new MENU ARTICLE to the new menu, clicking at that new article, it did nothing ... :(

What is the problem could be ?

Thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 6:07 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
emmm... i am using Access Control-> Manage Levels

this is what i did:
1. create groups GroupA, GroupB
2. Create Access Levels LevelA having GroupA and LevelB having GroupB.
3. Create users for ech group (userA, userB).
4. create 2 articles (articleA with access level LevelA, and articleB with access level LevelB.
5. create 2 menu items for each article: (ArticleA and ArticleB with access levels LevelA and LevelB).

Only userA can see and read ArticleA and userB can see and read ArticleB only.

but sometimes i noticed that an anauthorised user can view things of another group. For example it happens (in some cases) that userA can see ArticleB!!!
I dont know what is the problem
I spent tooo much time on this and now it's not working in a trusted way.

hope someone tells me what did i do worng?


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 6:38 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
pedmajungne wrote:
But, we can also see the link for NoIX ACL, and it's works for all backend user ... -> BAD

I still can't find how to block this ... :(


I dont understand... what noix link? do you mean the path?


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 6:59 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
pedmajungne wrote:
But, we can also see the link for NoIX ACL, and it's works for all backend user ... -> BAD

I still can't find how to block this ... :(
quote]

I dont understand... what noix link? do you mean the path?


Hi Zahraa,

sorry for my bad english :)
I mean, we can still access NoIX ACL component eventhough we login as a manager to backend.
Components -> Access Level -> ....

I want that only superadmin have access to this component. Through modification I made at authorization.php, ALL backend user can access to this component now. ... :(
At noix adapter access configuration, I don't give them access to Manage Component.
( Access Level -> Manage Group -> adapter access -> General )


Thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 7:17 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
emmm... i am using Access Control-> Manage Levels

this is what i did:
1. create groups GroupA, GroupB
2. Create Access Levels LevelA having GroupA and LevelB having GroupB.
3. Create users for ech group (userA, userB).
4. create 2 articles (articleA with access level LevelA, and articleB with access level LevelB.
5. create 2 menu items for each article: (ArticleA and ArticleB with access levels LevelA and LevelB).



Hi Zahraa,

I did also like you did, but as i want to assign GroupA to LevelA, I can't do that. I just can see MultiGroup option, and below it just normal group can be choose (registered, author, manager, etc ...)
I can see GroupA & GroupB there, but there is no option to choose this group.

I use these:
- noixacl2.0.6.zip
- mod_mainmenu_noixacl.zip
- adaptercontent1.5.5.zip
- adapteraccess1.5.3.zip
- adaptermodules1.0.zip
- menuadapter1.5.1.zip

Uninstall plugin_system_2.0.10 , Install plugin_system_2.0.11.zip
Uninstall plugin_user_2.0.10, install plugin_user_2.0.11.zip

Zahraa wrote:
Only userA can see and read ArticleA and userB can see and read ArticleB only.

but sometimes i noticed that an anauthorised user can view things of another group. For example it happens (in some cases) that userA can see ArticleB!!!
I dont know what is the problem
I spent tooo much time on this and now it's not working in a trusted way.

hope someone tells me what did i do worng?


About this problem, I have not experienced with it until now. I will check it also.
It means, this ACL still has many bugs to be fixed ... :(

Thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 7:33 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
hi pedmajungne,

i understood your problem (at last :D)
actually, im not much in joomla, but try this file
plugins/system/noixacl.php
maybe u can do something here.

The disables checkboxes thing is a bug.
You can fix it by:

Quote:
u need to:
1. browse to
siteFolder\administrator\components\com_noixacl\views\accesslevel\tmpl
2. open the "default.php"
3. in line 48 (should be the same i guess), you will find this code:



Code:
<?php if( $groupValue > 28 ): ?>
  <input type="checkbox" disabled="disabled" />


Change the condition to:


Code:
<?php if( $groupValue ==29 ||$groupValue ==30 ): ?>
<input type="checkbox" disabled="disabled" />



yes tooo many bugs
hope they are fixed very soon


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 23, 2009 2:20 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Hi Zahraa,

Thanks alot. I will look at it.

Rgds,
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Sat Oct 24, 2009 11:37 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 11, 2008 1:27 am
Posts: 17
I notice the multi group option on the current version on noixACL doesn't function, could someone test this and see if this actually works. spoke to Joomila about this and he said he havent went ahead and tested it so if anyone of you guys which work on NoixACL I would love to use this feature.


cheers


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Wed Oct 28, 2009 7:43 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
ewm,

when are we getting the new release?


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Thu Oct 29, 2009 12:38 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
ewm,

when are we getting the new release?



Yes, I'm waiting also :)

thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 30, 2009 12:05 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
pedmajungne wrote:
Zahraa wrote:
ewm,

when are we getting the new release?



Yes, I'm waiting also :)

thanks.
- pedma -



Hi Zahraa,

Joomla 1.6 Alpha2 is out. If you have time, I think you will see this :
viewtopic.php?f=9&t=454211

The new ACL is good .... I hope the Beta release will come soon .... :)

Thanks.
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 30, 2009 8:44 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
ACL integrated with jooomla?????
wow
i cant believe my self

pedma, thanks from the bottom of my heart for tellling me


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Fri Oct 30, 2009 8:53 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
ACL integrated with jooomla?????
wow
i cant believe my self

pedma, thanks from the bottom of my heart for tellling me


No problem my friend ... :) Beside it has good ACL, it has also UNLIMITED SUB-CATEGORIES capability.
I'm waiting for the Beta version ....
I'm now looking for the way to hide the Category Manager for specified group.
And believe some one out there can help to solved the problem ... :)

viewtopic.php?f=304&t=455592

Have a nice day ..
Regards,
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Mon Nov 02, 2009 1:20 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
pedma,
for ur problem, i have no idea...
i installed 1.6, but nothing is working. I cant even create a user.
Looks like i'm sticking to the NOIX ACL.
hoping the release will come sooon
i cant install the current one with all its bugs

ewm
come on when are we getting the new release?????????
my boss will kill me for this


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Tue Nov 03, 2009 2:57 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Zahraa wrote:
pedma,
for ur problem, i have no idea...
i installed 1.6, but nothing is working. I cant even create a user.
Looks like i'm sticking to the NOIX ACL.
hoping the release will come sooon
i cant install the current one with all its bugs

ewm
come on when are we getting the new release?????????
my boss will kill me for this


Hi Zahraa,

Joomla 1.6 Alpha 2 is nice, just follow the tutorial here (please note that 'admistrator' group in this example is the parent of 'manager' group. Normally in Joomla : 'manager' group is the parent of 'administrator' group)

http://docs.joomla.org/ACL_Tutorial_for_Joomla_1.6

But, as you know: J1.6 is NOT ready for real website yet. Still waiting the BETA version .. :)

About the problem of hiding some components, I got this (May be it's usefull for you too :) ) :

viewtopic.php?f=304&t=351215&p=1913329#p1913329

Hope it helps.
Thanks
- pedma -


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Tue Nov 03, 2009 10:27 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Sep 28, 2009 12:34 pm
Posts: 56
so im sticking to noix :'(
thanks pedma


Top
  E-mail  
 
 Post subject: Re: noix ACL
Posted: Thu Nov 05, 2009 9:10 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Oct 09, 2009 10:24 am
Posts: 6
I am trying to hide a mainmenu item from users that aren't registered.
In that I anm succeding, bunt when I log in as a user in the group that has acces to the mainmenu item and I klik on the now visible menuitem I get the errror component not found. Some where I made a mistake but I don't know where.

I made a group under registered for the front end
I made an access level with that group (thanks for solution for the bug, because that got me stummed).
I gave my mainmenu item the acces rights of that level.
I just realised that I didn't give the content any rights can that solve my problem? I can't test it right now because my powersupply of my laptop broke down (which got the site running locally) and I didn't manage to install the site on my desktop.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 182 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next

Quick reply

 



Who is online

Users browsing this forum: ajibanda and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group