RonJames
RonJames5d ago

None authority

So I built this authority management component which manages authority on a single realtime view. The user can lease authority for a duration. However when they release authority, the realtime authority goes to none which means anyone can alter the model. I'm wondering if theres a option where no one can alter the models until someone claims authority and only then they may alter it?
4 Replies
kapa.ai
kapa.ai5d ago
Hi @RonJames. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- In Normcore, when a RealtimeView or RealtimeComponent is unowned (authority is set to "none"), the default behavior is that any client can modify the model. There is no built-in option to make a model immutable (read-only) when it is unowned; ownership is the mechanism that restricts write access. Only the owning client can make changes, but when ownership is cleared, the model becomes open for modification by any client until a new owner claims it. The only related control is the preventOwnershipTakeover flag, which, when enabled, prevents other clients from taking ownership unless the model is unowned. However, it does not prevent modifications when the model is unowned—it only restricts who can claim ownership, not who can write to the model in the unowned state Ownership + Lifetime Flags. To summarize:
- When a model is unowned, it is writable by all clients. - There is no built-in setting to make a model read-only when unowned. - The only way to restrict modifications is to ensure the model is always owned by a client. If you need stricter control (e.g., making the model read-only when unowned), you would need to implement custom logic, possibly with a custom authoritative server using Normcore Private, where you could enforce such rules at the server level Authoritative Servers. I'm sorry, but there's no built-in option in Normcore to make a model immutable when unowned; this would require custom server logic. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5d ago
<@378869779668140042> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Mechabit
Mechabit5d ago
just create a can edit flag model check if the model is true or not before editing or retain ownership until you want someone else to be able to edit a model
maxweisel
maxweisel4d ago
there’s no way to block editing if the model is unowned. adding your own flag or gating edits on having ownership in the client is the way to go

Did you find this page helpful?