-
☆ A M B ☆
- 2,475 Posts
The request would be for both generic API methods and for a system event that fires when someone clears locks. Why this is hugely important is so that custom manager pages can lock down custom resources (e.g. 3rd party custom database tables). Right now, if someone is editing records in my custom database tables, there is the possibility for user collisions -- one user overwriting the work of another = hugely problematic. I could come up with my own locking mechanism, but it’s a bad user-experience to have to use a separate menu item to clear *my* locks as opposed to clearing MODx locks. Does that make sense?
The pieces are already there in the core.... why not make them available to the custom components in the same way that you can add MODx permissions to your CMP’s by creating an action.
-
☆ A M B ☆
- 2,475 Posts
Do you know how MODx is handling the locking of a resource now? It doesn’t appear to be updating a column on the site_content table, so it must be storing the lock somewhere else...