Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // One method that can be used to determine if they CAN edit
  2. // Example for Categories, adjust for Community Builder
  3. $canEdit = $user->authorise('core.edit', 'com_content.category.' . $catid);
  4.  
  5. $this->form->setFieldAttribute('name', 'class', 'readonly');
  6. $this->form->setFieldAttribute('name', 'readonly', 'true');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement