aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-02-13short circuit the expensive parts of the permission checking codeMic Bowman1-1/+6
if the current user is the owner of an object. none of the later checks can reverse the outcome.
2011-12-17Fix bug where objects could not be set to a new group if the group had been ↵Justin Clark-Casey (justincc)1-3/+9
created in that client session, or if no other action has been performed on the object. There were two problems here: 1) On object group update, we looked for the group is the IClientAPI group cache rather than in the groups service. This fails to groups created newly in that session 2) On object group update, we weren't setting the HasGroupChanged flag. This meant that the change was not persisted unless some other action set this flag. This commit fixes these issues and hopefully addresses http://opensimulator.org/mantis/view.php?id=5588 This commit also moves HandleObjectGroupUpdate() to the GroupsModule from the Scene.PacketHandlers.cs file
2011-11-29Improve some of the debug help messagesJustin Clark-Casey (justincc)1-3/+2
2011-11-15For clients that are entering a simulator from initial login, stop executing ↵Justin Clark-Casey (justincc)1-2/+1
FriendsModule.FetchFriendslist() asychronously. Executing this asynchronously allows a race condition where subsequent friends fetches hit a cache that FetchFriendsList() had not yet populated. Changing this to synchronous may improve issues where a user does not see friends as online even though they are. I don't believe synchronous is a problem here, but if it is, then a more complicated signalling mechanism is required. Locking the cache isn't sufficient.
2011-09-12When creating an OAR, optionally exclude objects according to their permissionsOren Hurvitz1-37/+52
2011-09-01Remove pointless cluttering SOP.ParentGroup != null checks.Justin Clark-Casey (justincc)1-1/+1
The only times when ParentGroup might be null is during regression tests (which might not be a valid thing) and when scene objects are being constructed from the database. At all other times it's not possible for a SOP not to have a SOG parent.
2011-07-23Fixed serverside_object_permission default value conflictionMakopoppo1-1/+1
2011-07-01Make default serverside_object_permissions = true since this better matches ↵Justin Clark-Casey (justincc)1-1/+1
user expectations. It also matches the default setting in the OpenSim.ini.example file
2011-05-21Fixed permissions bug related to friends in PermissionsModule. Added ↵Diva Canto1-15/+26
FriendsData[] GetFriends(string principalID) to IFriendsData and FriendInfo[] GetFriends(string PrincipalID) to IFriendsService. Refactored some more in the FriendsModule. Made client get notification of local friends permissions upon HGLogin. HG Friends object permissions work.
2011-03-14When setting media on a prim values, use generic object permissions instead ↵Justin Clark-Casey (justincc)1-2/+2
of media permissions. Media permissions are just meant to be checked when we want to know if a user should be shown the navigation bar or allowed to navigate. It should not be checked when we're setting the media up. This bug was preventing a user from ever setting any more values if they had unchecked the owner settings.
2010-12-13Revamp the viewer -> banlist packet processing so fix a number of bugs.Melanie1-53/+3
Remove the too coarse CanEditParcel method in favor of a CanEditParcelProperties method that takes a GroupPowers argument to specify what action is to be taken. Also, make the method to set parcel data much more granular. Permissions in a deeded setting should now work.
2010-09-21Fix a typoMelanie1-3/+3
2010-09-21Refactor script create permission into the perms moduleMelanie1-5/+23
2010-09-12Formatting cleanup.Jeff Ames1-11/+11
2010-07-29Allow gods and estate managers/owners to be unaffected by parcel bansMelanie Thielker1-0/+1
2010-07-28Fix problem where changes to media textures for prims duplicated by shify ↵Justin Clark-Casey (justincc)1-6/+6
copy would change both prims until server restart I also found out that you can crash the current viewer by giving it more media entrys than it's expecting
2010-07-26provide config option for media on a primJustin Clark-Casey (justincc)1-2/+2
2010-07-26fix previous media interact serverside checking. perform very basic ↵Justin Clark-Casey (justincc)1-5/+25
serverside url whitelist checks at the moment, only checking for the exact name prefix is implemented for some reason, whitelists are not persisting this commit also fixes a very recent problem where setting any media texture parameters after the initial configuration would not work
2010-07-26implement serverside checks for media texture navigation in order to stop ↵Justin Clark-Casey (justincc)1-1/+20
naughty clients
2010-07-26factor out soon to be common media permissions check codeJustin Clark-Casey (justincc)1-4/+9
2010-07-26implement prim media control permissions serverside in order to stop bad clientsJustin Clark-Casey (justincc)1-1/+42
2010-07-26provide config option for media on a primJustin Clark-Casey (justincc)1-2/+2
2010-07-14fix previous media interact serverside checking. perform very basic ↵Justin Clark-Casey (justincc)1-5/+25
serverside url whitelist checks at the moment, only checking for the exact name prefix is implemented for some reason, whitelists are not persisting this commit also fixes a very recent problem where setting any media texture parameters after the initial configuration would not work
2010-07-13implement serverside checks for media texture navigation in order to stop ↵Justin Clark-Casey (justincc)1-1/+20
naughty clients
2010-07-13factor out soon to be common media permissions check codeJustin Clark-Casey (justincc)1-4/+9
2010-07-13implement prim media control permissions serverside in order to stop bad clientsJustin Clark-Casey (justincc)1-1/+42
2010-04-30Fix some symbol errorsMelanie1-2/+2
2010-04-30Fix link security issueMelanie1-3/+3
2010-04-19If a transfer request is received for a task inventory item asset, then ↵Justin Clark-Casey (justincc)1-6/+11
route the permissions request through the existing CanEditScript() and CanEditNotecard() methods. This implements the 'share with group' flag for notecards and scripts in prim inventory since the PermissionsModule checks group membership and permissions. Other than that, the code in PermissionsModule duplicates the checks in LLClientView so there should be no change other than allowing group members to edit embedded notecards and scripts. For all other asset types, the permission checking code in LLClientView continues to be used, pending refactoring of suitable permissions code This means that 'share with group' will not yet work for prim inventory items other than notecards and scripts
2010-04-05check group membership and powers with the groups module rather than just ↵Justin Clark-Casey (justincc)1-12/+27
the client's active group id this resolves the earlier issue where notecards/scripts shared with group could only be edited if the user had that group active
2010-03-20Fix a nullref in permissions when returning objects via right-clickMelanie1-2/+2
2010-03-18Flesh out the new permission methodMelanie1-4/+95
2010-03-18Unify a previous refactor of object return with the older solution. WeMelanie1-65/+6
really don't need two methods doing the same thing, but differently.
2010-03-10Reintroduce a check that was dropped from permissionsMelanie1-1/+1
2010-03-09Cache UserLevel in ScenePresence on SP creation. Change IsAdministratorMelanie1-0/+8
to use that stored value.
2010-03-09* Typo fixesJohn Hurliman1-4/+5
* Performance improvement in the expensive GenerateClientFlags()
2010-01-29Revert "Updates all IRegionModules to the new style region modules."Melanie1-136/+76
This reverts commit ec3c31e61e5e540f822891110df9bc978655bbaf.
2010-01-28Fixes inconsistencies in the permissions module. Adds a region_manager_is_godMelanie1-4/+7
configurable. Previously, estate managers could enter god mode, but would not have any powers. Now estate managers can enter god mode only if this option is true, and then will have real god powers.
2010-01-23Updates all IRegionModules to the new style region modules.Revolution1-76/+136
Signed-off-by: Melanie <melanie@t-data.com>
2010-01-19Change a member of the friendslist module to better reflect the client sideMelanie1-6/+3
data storage paradigm of the friends list and avoid repeated, unneccessary fetches of the entire friends list.
2010-01-11OpenSim/Framework/Communications/Cache deleted. LibraryRootFolder deleted.Diva Canto1-1/+1
2010-01-10Remove all references to master avatar, replacing with estate owner whereMelanie1-6/+0
appropriate. This changes the behavior of the REST plugins and RemoteAdmin's region creation process.
2010-01-10* OMG! All but one references to UserProfileCacheService have been rerouted!Diva Canto1-3/+3
* HG is seriously broken here * Compiles. Untested.
2010-01-05Allow estate managers (if estate_owner_is_god is set) to actually enterMelanie1-1/+4
god mode. Allow god modification of objects if the object owner is the same god that wants to modify, this allows you to regain perms on your own objects after IAR import messed them up.
2010-01-04Formatting cleanup. Add copyright headers.Jeff Ames1-1/+1
2010-01-01The Library Service is now working. UserProfileCacheService.LibraryRoot is ↵Diva Canto1-6/+23
obsolete. Didn't delete it yet to avoid merge conflicts later -- want to stay out of core as much as possible.
2009-11-27Apply patch to stop failure of llParcelMediaCommandList() on group deeded landJustin Clark-Casey (justincc)1-8/+9
See http://opensimulator.org/mantis/view.php?id=3999
2009-11-23Formatting cleanup.Jeff Ames1-8/+8
2009-11-05Change the permissions module to use the friend list cache already in theMelanie1-2/+15
friends module instead of requesting the entire friends list over the network each time a prim is touched.
2009-11-05Remove a spammy debug message from friends list check in the perms module.Melanie1-20/+2
Replace the integer compares with proper bitflags checking from libOMV. Friends rights are now functional.