29 using System.Collections.Generic;
30 using System.Reflection;
34 namespace OpenSim.Framework
36 public static class PermissionsUtil
38 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 public static void LogPermissions(String name, String message, uint basePerm, uint curPerm, uint nextPerm)
46 m_log.DebugFormat(
"Permissions of \"{0}\" at \"{1}\": Base {2} ({3:X4}), Current {4} ({5:X4}), NextOwner {6} ({7:X4})",
48 PermissionsToString(basePerm), basePerm, PermissionsToString(curPerm), curPerm, PermissionsToString(nextPerm), nextPerm);
54 private static string PermissionsToString(uint perms)
73 public static void ApplyFoldedPermissions(uint foldedPerms, ref uint mainPerms)
81 mainPerms &= ~(uint)PermissionMask.Transfer;
83 mainPerms &= ~(uint)PermissionMask.Modify;
OpenSim.Framework.PermissionMask PermissionMask