Disco.Services.DeviceActionExtensions.CanUpdateDeviceProfile C# (CSharp) Method

CanUpdateDeviceProfile() public static method

public static CanUpdateDeviceProfile ( this d ) : bool
d this
return bool
        public static bool CanUpdateDeviceProfile(this Device d)
        {
            if (!UserService.CurrentAuthorization.Has(Claims.Device.Properties.DeviceProfile))
                return false;

            return !d.IsDecommissioned();
        }