aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ACL.cs
diff options
context:
space:
mode:
authorMelanie2009-10-30 22:08:34 +0000
committerMelanie2009-10-30 22:08:34 +0000
commitf54d611771ccb780d7830b90990b0915ec37e2e6 (patch)
tree213d1d8de54c7f4d259d1e96a5d85de99383dd18 /OpenSim/Framework/ACL.cs
parentMake the default and max RTO configurable int he linden client stack (diff)
parent* Add LocklessQueueTests. One Test is commented out because it fails. ... (diff)
downloadopensim-SC_OLD-f54d611771ccb780d7830b90990b0915ec37e2e6.zip
opensim-SC_OLD-f54d611771ccb780d7830b90990b0915ec37e2e6.tar.gz
opensim-SC_OLD-f54d611771ccb780d7830b90990b0915ec37e2e6.tar.bz2
opensim-SC_OLD-f54d611771ccb780d7830b90990b0915ec37e2e6.tar.xz
Merge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Framework/ACL.cs')
-rw-r--r--OpenSim/Framework/ACL.cs32
1 files changed, 1 insertions, 31 deletions
diff --git a/OpenSim/Framework/ACL.cs b/OpenSim/Framework/ACL.cs
index 3b1c0f0..f76e8b7 100644
--- a/OpenSim/Framework/ACL.cs
+++ b/OpenSim/Framework/ACL.cs
@@ -248,35 +248,5 @@ namespace OpenSim.Framework
248 248
249 #endregion 249 #endregion
250 250
251 #region Tests 251
252
253 /// <summary>
254 /// ACL Test class
255 /// </summary>
256 internal class ACLTester
257 {
258 public ACLTester()
259 {
260 ACL acl = new ACL();
261
262 Role Guests = new Role("Guests");
263 acl.AddRole(Guests);
264
265 Role[] parents = new Role[0];
266 parents[0] = Guests;
267
268 Role JoeGuest = new Role("JoeGuest", parents);
269 acl.AddRole(JoeGuest);
270
271 Resource CanBuild = new Resource("CanBuild");
272 acl.AddResource(CanBuild);
273
274
275 acl.GrantPermission("Guests", "CanBuild");
276
277 acl.HasPermission("JoeGuest", "CanBuild");
278 }
279 }
280
281 #endregion
282} \ No newline at end of file 252} \ No newline at end of file