Keyword

Category restrictions dropped when editing published item

  • Geraint Wyn Edwards
  • Geraint Wyn Edwards's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #73989 by Geraint Wyn Edwards
1. Create a user (A) and add to user group that can create and edit items on specific category
2. This user (A) creates a new article in the frontend - category list is restricted as it should be
3. User (A) saves item
4. This article is then published by another user (B)
5. User (A) re-edits the article - category list is NOT resctricted.

Line 450 of components/com_k2/views/item/view.html.php should read

if (($task == 'add' || $task =='edit') && !$user->authorize('com_k2', 'add', 'category', 'all')) {

to correct this problem

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


Powered by Kunena Forum