Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // One method that can be used to determine if they CAN edit
- // Example for Categories, adjust for Community Builder
- $canEdit = $user->authorise('core.edit', 'com_content.category.' . $catid);
- $this->form->setFieldAttribute('name', 'class', 'readonly');
- $this->form->setFieldAttribute('name', 'readonly', 'true');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement