aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang1-697/+1357
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-67/+86
2012-11-11One more module converted: PermissionsModule.Diva Canto1-112/+155
2012-06-20Lower warn logging on not having friends/group module on permissions to debug.Justin Clark-Casey (justincc)1-2/+2
It's a valid configuration not to have these modules, but I think it's still worth logging the fact that certain permissions won't work (always return true)
2012-06-15Put all debug console commands into a single Debug section rather than ↵Justin Clark-Casey (justincc)1-1/+1
scattering them over other categories
2012-05-17minor: Remove redundant EstateOwner != UUID.Zero check in IsAdministrator ↵Justin Clark-Casey (justincc)1-8/+6
because checking EstateOwner == user Due to an earlier check we already know that user != UUID.Zero so if EstateOwner == UUID.Zero, EstateOwner == user can never be true
2012-04-27If a Grid God teleports then include the Godlike teleport flag. This can ↵Oren Hurvitz1-9/+22
affect the starting position in the destination region.
2012-04-17refactor: Rename EstateSettings.IsEstateManager() to ↵Justin Clark-Casey (justincc)1-1/+1
EstateSettings.IsEstateManagerOrOwner() to reflect what it actually does. This makes it consistent with other parts of OpenSimulator that are treating ESTATE_MANAGER and ESTATE_OWNER as different entities. As per opensim-dev mailing list.
2012-03-30Add simple login test with online friends. Add IFriendsModule.GrantRights() ↵Justin Clark-Casey (justincc)1-6/+4
for granting rights via a module call. Rename IFriendsModule.GetFriendPerms() -> GetRightsGrantedByFriend() to be more self-documenting and consistent with friends module terminology. Add some method doc.
2012-03-22Rework Diva's patch to simplify itMelanie1-2/+10
2012-03-22Revert "Simple build permissions feature. NOTE: EXPERIMENTAL, DISABLED BY ↵Melanie1-32/+2
DEFAULT. Turns out that this can't be expressed by cascading Permission modules, so I did it as per this patch." This reverts commit 6146e7ef258b10888ad7464b72b75cca701e02c9.
2012-03-22Simple build permissions feature. NOTE: EXPERIMENTAL, DISABLED BY DEFAULT. ↵Diva Canto1-2/+32
Turns out that this can't be expressed by cascading Permission modules, so I did it as per this patch.
2012-03-08Change "help" to display categories/module list then "help ↵Justin Clark-Casey (justincc)1-3/+3
<category/module>" to display commands in a category. This is to deal with the hundred lines of command splurge when one previously typed "help" Modelled somewhat on the mysql console One can still type help <command> to get per command help at any point. Categories capitalized to avoid conflict with the all-lowercase commands (except for commander system, as of yet). Does not affect command parsing or any other aspects of the console apart from the help system. Backwards compatible with existing modules.
2012-02-21Fix problem with dragging child part inventory item to user inventory.Justin Clark-Casey (justincc)1-19/+3
This fixes the problem by fixing the permissions module to look at root part permissions rather than having to do this for every caller. Resolves http://opensimulator.org/mantis/view.php?id=5569
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()