diff options
author | mingchen | 2008-05-08 19:37:57 +0000 |
---|---|---|
committer | mingchen | 2008-05-08 19:37:57 +0000 |
commit | 6c71a04da8150f7948df7a43f532e525d44cc4e7 (patch) | |
tree | e9ed76fd72fa84f9aad4ff5dec66972e08e93b82 /OpenSim/Region/Environment/Interfaces/IScenePermissions.cs | |
parent | * Committing an extra bit of permissions for attaching to ensure that the per... (diff) | |
download | opensim-SC-6c71a04da8150f7948df7a43f532e525d44cc4e7.zip opensim-SC-6c71a04da8150f7948df7a43f532e525d44cc4e7.tar.gz opensim-SC-6c71a04da8150f7948df7a43f532e525d44cc4e7.tar.bz2 opensim-SC-6c71a04da8150f7948df7a43f532e525d44cc4e7.tar.xz |
*Added all the permission checks to the sceneexternalchecks and modified permission module to follow this.
*This makes permission checking much more modular; allows restrictive and granting module to be made without modifying the existing permission module
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/IScenePermissions.cs | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IScenePermissions.cs b/OpenSim/Region/Environment/Interfaces/IScenePermissions.cs index 5d161bb..06c6611 100644 --- a/OpenSim/Region/Environment/Interfaces/IScenePermissions.cs +++ b/OpenSim/Region/Environment/Interfaces/IScenePermissions.cs | |||
@@ -32,72 +32,6 @@ namespace OpenSim.Region.Environment.Interfaces | |||
32 | public interface IScenePermissions | 32 | public interface IScenePermissions |
33 | { | 33 | { |
34 | bool BypassPermissions { get; set; } | 34 | bool BypassPermissions { get; set; } |
35 | |||
36 | #region Object Permissions | ||
37 | |||
38 | bool CanRezObject(LLUUID user, LLVector3 position, int count); | ||
39 | |||
40 | /// <summary> | ||
41 | /// Permissions check - can user delete an object? | ||
42 | /// </summary> | ||
43 | /// <param name="user">User attempting the delete</param> | ||
44 | /// <param name="obj">Target object</param> | ||
45 | /// <returns>Has permission?</returns> | ||
46 | bool CanDeRezObject(LLUUID user, LLUUID obj); | ||
47 | |||
48 | bool CanCopyObject(LLUUID user, LLUUID obj); | ||
49 | |||
50 | bool CanEditObject(LLUUID user, LLUUID obj); | ||
51 | |||
52 | bool CanEditObjectPosition(LLUUID user, LLUUID obj); | ||
53 | |||
54 | /// <summary> | ||
55 | /// Permissions check - can user enter an object? | ||
56 | /// </summary> | ||
57 | /// <param name="user">User attempting move an object</param> | ||
58 | /// <param name="oldPos">Source object-position</param> | ||
59 | /// <param name="newPos">Target object-position</param> | ||
60 | /// <returns>Has permission?</returns> | ||
61 | bool CanObjectEntry(LLUUID user, LLVector3 oldPos, LLVector3 newPos); | ||
62 | |||
63 | bool CanReturnObject(LLUUID user, LLUUID obj); | ||
64 | |||
65 | #endregion | ||
66 | |||
67 | #region Uncategorized permissions | ||
68 | |||
69 | bool CanInstantMessage(LLUUID user, LLUUID target); | ||
70 | |||
71 | bool CanInventoryTransfer(LLUUID user, LLUUID target); | ||
72 | |||
73 | bool CanEditScript(LLUUID user, LLUUID script); | ||
74 | |||
75 | bool CanRunScript(LLUUID user, LLUUID script); | ||
76 | |||
77 | bool CanRunConsoleCommand(LLUUID user); | ||
78 | |||
79 | bool CanTerraform(LLUUID user, LLVector3 position); | ||
80 | |||
81 | #endregion | ||
82 | |||
83 | #region Estate Permissions | ||
84 | |||
85 | bool IsEstateManager(LLUUID user); | ||
86 | |||
87 | bool GenericEstatePermission(LLUUID user); | ||
88 | |||
89 | bool CanEditEstateTerrain(LLUUID user); | ||
90 | |||
91 | bool CanRestartSim(LLUUID user); | ||
92 | |||
93 | bool CanEditParcel(LLUUID user, ILandObject parcel); | ||
94 | |||
95 | bool CanSellParcel(LLUUID user, ILandObject parcel); | ||
96 | |||
97 | bool CanAbandonParcel(LLUUID user, ILandObject parcel); | ||
98 | |||
99 | #endregion | ||
100 | |||
101 | uint GenerateClientFlags(LLUUID user, LLUUID objID); | 35 | uint GenerateClientFlags(LLUUID user, LLUUID objID); |
102 | } | 36 | } |
103 | } | 37 | } |