-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task #162657 chore: Public access to UCM list and Item view #368
base: release-1.2.4
Are you sure you want to change the base?
Task #162657 chore: Public access to UCM list and Item view #368
Conversation
$lang->load('com_tjfields', JPATH_SITE); | ||
|
||
$this->state = $this->get('State'); | ||
$this->item = $this->get('Data'); | ||
$model = $this->getModel("Item"); | ||
$this->model = $this->getModel("Item"); | ||
$this->params = $app->getParams('com_tjucm'); | ||
$this->ucmTypeId = $model->getState('ucmType.id'); | ||
|
||
if (!$user->id) |
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
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
No description provided.