Silent manage estate access permission check
closed
N
Nya Jules
I have an object that is intended to perform llManageEstateAccess actions when it has the permission and otherwise not. The object could be present anywhere, means it could be on mainland, on a private sim with estate access permission or a private sim without estate access permission.
How do I know if the object has the permission?
Currently I can silently check if the object is on mainland, so that scenario is sorted.
However, in order to check if the object has manage estate access permissions while located on a private sim a workaround is to perform an ESTATE_ACCESS_BANNED_AGENT_REMOVE request and see if that's true. But the issue is that it's not silent, the object owner gets notified. I also don't want to request PERMISSION_SILENT_ESTATE_MANAGEMENT since that's unnecessary if no manage estate access actions are ever performed (due to missing permissions) and also could be confusing to the end user.
I'd just like to call a function and get silently returned whether or not the object (object owner?) has manage estate access rights.
I apologize if something like that already exists and I've just missed it.
Log In
Spidey Linden
closed
Hello, and thank you for your feature request.
Incoming suggestions are reviewed in the order they are received by a team of Lindens with diverse areas of expertise. We consider a number of factors: Is this change possible? Will it increase lag? Will it break existing content? Is it likely that the number of residents using this feature will justify the time to develop it? This wiki page further describes the reasoning we use: Feature Requests
This particular suggestion, unfortunately, cannot be tackled at this time. However, we regularly review previously deferred suggestions when circumstances change or resources become available.
We are grateful for the time you took to submit this feature request. We hope that you are not discouraged from submitting others in the future. Many excellent ideas to improve Second Life come from you, our residents. We can’t do it alone.
Thank you for your continued commitment to Second Life.
Peter Stindberg
OK, I spill the secret...
Check llSetEnvironment - if called with <-1,-1,0> it fails (silently!) with return code -9 if the script-owner has no estate manager privileges.
First use llGetEnvironment to grab e.g. SKY_GAMMA, then use llSetEnvironment to set it to the same value you just grabbed (so no visible changes happen to the sky). If it works, the script owner is estate manager. If it fails with -9, they are not.
Of course, do the usual checks first whether you ARE on an estate in the first place.
You're welcome.
Silverdown Seetan
If the person who owns the object is an estate owner or manager it has permissions.
Each of the functions returns FALSE if the person doesn't have permissions
see the info here: https://wiki.secondlife.com/wiki/LlManageEstateAccess
N
Nya Jules
Silverdown Seetan Again, the problem is that none of these functions is silent and I can't just test if the permission is there without confusing the object owner.
I would like to be able to hide all estate management functionality if there is no permission.