Archived showing to REGISTERS

More
13 years 8 months ago #25424 by igcorreia
Hello is there any reason why could archived items be showed to Registers.

The item was created by a REGISTERED USER
I am using Flexi access.

For some reason suddenly the archived articles appear in the front end to registers. What can cause this to happen?

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

More
13 years 8 months ago #25428 by ggppdk
All archived items or just the ones owned/modified by the registered user?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 8 months ago #25431 by igcorreia
only own items not all.

i have allow agents(registered users) to create contracts after the contract is signed i have archiving the items but it is still showing to the user. Is is possible to hide it without deleting it?

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

More
13 years 8 months ago #25432 by ggppdk
You mean in category view?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 8 months ago #25433 by igcorreia
yes in the list of items in the category view with default template.

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

More
13 years 8 months ago #25444 by ggppdk
mmm,
a user can see all items he created or the items that he was last modifier, even if they are archived or trashed (state)

also he can see all unpublished items, if he can edit the items

this is old behavior of v1.5.4.

i guess we could add configuration parameters for this


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 8 months ago #25447 by igcorreia
haaaaaaa DAMMMMMMMMMMM :D

how can I "HIDE" them items then?

I think I am going to recreate the CATEGORIES structure and set permission with FACCESS. That is the only way I see.

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

More
13 years 8 months ago #25448 by igcorreia
In witch table is FC storing the CATEGORY and CATEGORIES, I need to change them. Can you help me with the query.

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

More
13 years 8 months ago #25451 by ggppdk
well, if you really want to hack category model, then inside component/com_flexicontent/models/category.php

you could change lines (function _buildItemWhere() )
Code:
$states = $ignoreState ? '1, -5, 0, -3, -4' : '1, -5'; $where .= ' AND ( i.state IN ('.$states.') OR i.created_by = '.$user->id.' OR ( i.modified_by = '.$user->id.' AND i.modified_by != 0 ) )';

to
Code:
$states = $ignoreState ? '1, -5, 0, -3, -4' : '1, -5'; $where .= ' AND ( i.state IN ('.$states.') ';


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 8 months ago #25463 by igcorreia
I have consider your suggestion but since i have the query done I decided to move the items to a special only category and changed the item permission to special only.

while doing this i notice something i flexiaccess.

i have 100 items in a public category then i move all the items to a special only category with flexi access should a register or a public user have access to this 100 items with the direct url to the items? since they are public the public users have access but shouldn't they respect the category permissions?

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

Moderators: vistamediajoomlacornerggppdk
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
Save