Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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

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

Last edit: by BTB300.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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

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

  • Page:
  • 1
Time to create page: 0.055 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started