Yeah, but there is a function in the code to do that for you. And it
also does lots of error checking. Best to use what is there and not
duplicate the effort. The big problem is that if there is no "Allow_"
line in the ini files, the code falls back on the threat level setting,
which is hard-coded into each OSSL function. There is currently no way
for one function to know what the threat level is for another function.
I have proposed 1) adding "Threat_" lines for every OSSL function to the
osslEnable.ini file, or 2) Moving the threat level for each function
into a private table in the OSSL class. Option 2 has the advantage that
no external changes are needed to the ini files. Option 1 gives people
the choice of changing the threat level of each function. But some
regions would have to update their ini files to keep things working as
they are now.
On 10/14/2019 7:44 PM, Kevin Cozens wrote:
On 2019-10-14 5:04 p.m., Melanie wrote:
The internal code is already able to determine permissions from a string
version if the osFunction name, exposing that would be quite trivial.
The way I would approach the problem is to make a string by append
"Allow_" to the start of a function name and use that string to get
the permission setting from the OSSL ini file. It only requires about
three or four lines of C# code.
_______________________________________________
Opensim-dev mailing list
Opensim-dev@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev