Skip to content

Comments

Task #162657 chore: Public access to UCM list and Item view#368

Open
KishoriBKarale wants to merge 2 commits intotechjoomla:release-1.2.4from
KishoriBKarale:publicPermission
Open

Task #162657 chore: Public access to UCM list and Item view#368
KishoriBKarale wants to merge 2 commits intotechjoomla:release-1.2.4from
KishoriBKarale:publicPermission

Conversation

@KishoriBKarale
Copy link

No description provided.

$this->params = $app->getParams('com_tjucm');
$this->ucmTypeId = $model->getState('ucmType.id');

if (!$user->id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KishoriBKarale Do we need to check this especially for public users?
We can check if any kind of user has access to the page.

if (!$user->id)
{
// Check public user permission for view all items
if (empty($user->authorise('core.type.viewitem', 'com_tjucm.type.' . $this->ucmTypeId)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KishoriBKarale Use TjucmAccess class to check ACL and permission

if (!$user->id)
{
// Check public user permission for view all items
if (empty($user->authorise('core.type.viewitem', 'com_tjucm.type.' . $this->ucmTypeId)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KishoriBKarale Check the same as mentioned in the above comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants