Skip to content

Commit

Permalink
Merge pull request #98 from berkut1/master
Browse files Browse the repository at this point in the history
[HyperV2012R2+] Added - support for automatic detection of VM configuration versions / Corrected the progress bar for Installing VMs / [Package] Change package user / A simple refactoring of VirtualizationServerController2012 / Some fixes
  • Loading branch information
FuseCP-TRobinson authored Oct 24, 2022
2 parents 20edb3f + 503586c commit ef36c5a
Show file tree
Hide file tree
Showing 58 changed files with 9,205 additions and 6,589 deletions.
33 changes: 33 additions & 0 deletions SolidCP/Database/update_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16003,6 +16003,39 @@ GO
SET QUOTED_IDENTIFIER OFF
GO

--- ChangePackageUser ---
-------------------------
IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'ChangePackageUser')
BEGIN
DROP PROCEDURE ChangePackageUser
END
GO

CREATE PROCEDURE [dbo].[ChangePackageUser]
(
@PackageID int,
@ActorID int,
@UserID int
)
AS

-- check rights
IF dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0
RAISERROR('You are not allowed to access this package', 16, 1)

BEGIN TRAN

UPDATE Packages
SET UserID = @UserID
WHERE PackageID = @PackageID

COMMIT TRAN

RETURN
GO

--- GetVirtualServices ---
--------------------------
IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetVirtualServices')
BEGIN
DROP PROCEDURE GetVirtualServices
Expand Down
Loading

0 comments on commit ef36c5a

Please sign in to comment.