ContentService.Unlock Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Overloads
Unlock(int, bool) | Unlocks a content item, making it possible for others to edit. |
Unlock |
Unlocks a content item, making it possible for others to edit. |
Unlock(int, bool)
Unlocks a content item, making it possible for others to edit.
public static Content Unlock(int id, bool sudo = false)
Parameters
- id
- int
Id of the Content item to unlock.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Unlock(int, bool)
Unlocks a content item, making it possible for others to edit.
public static T Unlock<T>(int id, bool sudo = false)
where T : Content, ILockable
Parameters
- id
- int
Id of the Content item to unlock.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
The unlocked Content.