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

CanUpdateDeviceBatch() public static method

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

            return !d.IsDecommissioned();
        }