Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Checked out - Admin need to access

[SOLVED] Checked out - Admin need to access 30 Sep 2012 06:40 #4143

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Hi There

Just testing check out functionality and selected a user from the list to checkout
- found when logged in as admin i have no access to a checked out document
- from the backend i can set it to a different user - error 500 occurs (if error happens it does not stay on the current page when saved)

Potentially this would be rather dangerous as a group of users could check out items and bring your site to a stand still

*** As Admin from the backend
- change the checked out user to a different user
- choose [SAVE and Close]
- error page 500 an error has occured
- follow the home page link from the error 500 page
- error message is displayed Check-in failed with the following error: The user checking in does not match the user who checked out the item.
- BUT THE RECORD WAS SAVED and it was checked out by the user selected earlier
- ADMIN has no access

*** trying to edit the document as admin you get
edit - Edit not allowed

*** trying to checkin you get
checkin - Check-in failed with the following error: The user checking in does not match the user who checked out the item.

*** Admin also needs access to change the checkout to a different user

Thanks in advance
Last Edit: 30 Sep 2012 07:10 by BTB300.
The administrator has disabled public write access.

Re: CHECKED OUT - ADMIN NEEDS ACCESS 03 Oct 2012 13:15 #4239

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Well, As I told before, the checked_out field should not be instancied in the form.
If an admin want to checkin an item, he can only checkin all the items trough the Global Checkin.
Creating a task button for that is easy to do, and not in priorities for the moment.
checkin() function is available in your model, so you just need to create a controller function that call this model function.
Then add a new toolbar button, wich will call the checkin function of the controller
Coding is now a piece of cake
The administrator has disabled public write access.

Re: CHECKED OUT - ADMIN NEEDS ACCESS 03 Oct 2012 14:17 #4243

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Thanks Admin
Just using / testing the tools that are available...
I just thought that admin checkin in the component would be similar to the admin view access level
had already started on task button over the weekend... learning something new everyday

Sorry I did not even think of the simple solution of global check-in

Thanks again for your assistance
The administrator has disabled public write access.
Time to create page: 0.072 seconds

Get Started