Search
Search
managedBy
managedBy
Returns who manages the Collection
const collection = await framer.getActiveCollection()
if (framer.mode === "collection" && collection.managedBy !== "user") {
framer.notify("This Collection cannot be modified.", { variant: "warning" });
}
Type
string
– Returns who manages the Collection:user
if the Collection is user-created.thisPlugin
if the Collection is managed by the current Plugin.anotherPlugin
if the Collection is managed by another Plugin.
Caveats
Plugin still needs to check if a user have the Permission to edit content via
framer.isAllowedTo
.