- Posts: 57
COMMUNITY FORUM
Bug - K2 items not obeying access levels
- Gregwh
-
Topic Author
- Offline
- Senior Member
How can this be fixed please?
Greg.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Also what are the menu's and categpory's permissions?
Please Log in or Create an account to join the conversation.
- Gregwh
-
Topic Author
- Offline
- Senior Member
- Posts: 57
Krikor wrote: Which version of Joomla and K2 are you using?
Also what are the menu's and categpory's permissions?
I have Joomla 3.4.1 and K2 2.6.9 which are both the latest.
Joomla controls the menus as there arent menus separately in K2. So to answer your permissions issue there arent permissions in menus in Joomla, only categories.
In the Joomla categories, there are only create, delete, edit, edit state, edit own for permissions and none of that stops anyone from seeing an alredy published K2 item. So those things in Joomla dont have any effect on the article I wish to limit to Registered and not allow Public to see.
In K2 Items, the item in question exists but it doesnt exist as a Joomla article. It displays on the web site but unfortunately to all. In K2 there is no option to hide or show an item via access level that actually works. I can set the article to show to Registered but it also shows to Public. The Permissions are the same as above and have nothing to do with display of a K2 item.
So as you can see there is no way to limit ANY K2 item to a particular access level or greater. That is why I reported it as a bug.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
www.joomlaworks.net/forum/k2-en/37670-solved-premium-content-items-invisible-if-not-logged-in#133921
ACL levels may remove the need for this type of code in overrides but it is complicated to set up
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This works in Joomla! 3.4 with K3 2.6.9 as intended.
If that does not work in your site, this means that another extension is preventing K2 from working correctly.
You can deactivate K2 related extensions at first to see which is causing this issue.
Please Log in or Create an account to join the conversation.
- Gregwh
-
Topic Author
- Offline
- Senior Member
- Posts: 57
It appears I was correct that if you want access level driven written media on your web site, you cant use K2 without possibly getting a mod to limit access. I am almost positive I can get that from Joomla web site but I would really have preferred to have an item to read be determined by access level in K2 to be honest. After all, it actually GIVES you an access level to set on any ITEM (posting on the web site I mean) you put there. Why have that option at all if it doesnt do a thing? It seems pointless at best but it has been the source of constant annoyance to me for a while now and I thought it was SUPPOSED to work the same way as a Joomla article where I can set Joomla article access for any article to REGISTERED and it immediately disappears from the screen for anyone not logged on or for someone coming to the site later, it doesnt show up UNLESS logged on.
K2 is no easy feat to get up and running but I have had it running a long time now and it really does do marvellous stuff. This one little thing stuffs that up badly.
For future reference for anyone working on future K2 updates, here are two things that I ask be considered:
1) Fix THIS problem. If a K2 item is set to any access level other than Public then it shouldnt show for any other access level other than those with viewing access to those other levels. Eg, if I appoint a Site Administrator and put that title in K2, on the Joomla side I can set the Viewing Access level to be able to see anything posted by Site Administrator, Registered, Author, Public. With Public, I have set Joomla Viewing Access Level to see ONLY Public. K2 should obey those Joomla restrictions when applied to K2 items.
2) I would dearly love to see the ability to download any article as an ePub or PDF (eg, both there, user chooses which to use).
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
By default when you select a different access level than Guest, the item is not visible to the Public.
This works in Joomla! 3.4 with K3 2.6.9 as intended.
If that does not work in your site, this means that another extension is preventing K2 from working correctly.
You can deactivate K2 related extensions at first to see which is causing this issue.
As for pdf's there are several scripts that are plug and play. Apart from Joomla! extension you can use scripts like www.web2pdfconvert.com/pdf-button
Please Log in or Create an account to join the conversation.
- Gregwh
-
Topic Author
- Offline
- Senior Member
- Posts: 57
Krikor wrote: As I already stated, this works just fine out of the box.
By default when you select a different access level than Guest, the item is not visible to the Public.
This works in Joomla! 3.4 with K3 2.6.9 as intended.
If that does not work in your site, this means that another extension is preventing K2 from working correctly.
You can deactivate K2 related extensions at first to see which is causing this issue.
Krikor,
I have nothing installed to do that. I have Joomla (latest), K2 (latest) and also Extrawatch to stop people from certain IP addresses from entering the web site at all. None of this interferes with articles. If you can suggest what else could be the problem so I could fix it, I would very much appreciate it. Otherwise, I can prove to you, 100%, that K2 doesnt obey the rules of ACL in the items. In fact I looked into what was coming with K2 and it said as much. Full compliance with Joomla ACL is still coming.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I cannot reproduce the error. Once I set the item a Registered access level, the item is not visible to the public.
Full compliance with Joomla ACL means that there are more options coming per category, these do not affect the access levels of the items.
Please Log in or Create an account to join the conversation.
- Udi
-
- Offline
- Junior Member
- Posts: 37
Are the rules you mentioned effective when using k2 content module to display registered item in pages prior to login (public, quests)?
regards,
Udi
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Different users will see different items in the module.
Please Log in or Create an account to join the conversation.
- Cristiano Signorino
-
- Offline
- New Member
- Posts: 1
I have the same problem of Udi. In a public main category, I've some public subcategories and some other subcategories with special access. But If I go to the frontend, I see all categories (special and public). I've set with special permission also the items inside the subcategories but it seems not work..
If it can help, this is the page to which I refer: goo.gl/dYC8Vl
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.