diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f4ebb0e..44e08ffb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog * [Changelog](#changelog) + * [2.26.3](#2263) * [2.26.2](#2262) * [2.26.1](#2261) * [2.26.0](#2260) @@ -84,6 +85,11 @@ *** +## 2.26.3 + +* [Issue #182](https://github.com/scrthq/PSGSuite/issues/182) - _Thanks, [@aitcriver](https://github.com/aitcriver)!_ + * Added: `FileOrganizer` role to `ValidateSet` for parameter `Role` on function `Add-GSDrivePermission` + ## 2.26.2 * [Issue #177](https://github.com/scrthq/PSGSuite/issues/177) diff --git a/PSGSuite/PSGSuite.psd1 b/PSGSuite/PSGSuite.psd1 index d3a970cb..5b2b8411 100644 --- a/PSGSuite/PSGSuite.psd1 +++ b/PSGSuite/PSGSuite.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSGSuite.psm1' # Version number of this module. - ModuleVersion = '2.26.2' + ModuleVersion = '2.26.3' # ID used to uniquely identify this module GUID = '9d751152-e83e-40bb-a6db-4c329092aaec' diff --git a/PSGSuite/Public/Drive/Add-GSDrivePermission.ps1 b/PSGSuite/Public/Drive/Add-GSDrivePermission.ps1 index 853c4718..1b5b662a 100644 --- a/PSGSuite/Public/Drive/Add-GSDrivePermission.ps1 +++ b/PSGSuite/Public/Drive/Add-GSDrivePermission.ps1 @@ -23,6 +23,7 @@ function Add-GSDrivePermission { * "Commenter" * "Reader" * "Organizer" + * "FileOrganizer" .PARAMETER Type The type of the grantee @@ -85,7 +86,7 @@ function Add-GSDrivePermission { [String] $FileId, [parameter(Mandatory = $true)] - [ValidateSet("Owner","Writer","Commenter","Reader","Organizer")] + [ValidateSet("Owner","Writer","Commenter","Reader","Organizer","FileOrganizer")] [String] $Role, [parameter(Mandatory = $true)] @@ -165,7 +166,7 @@ function Add-GSDrivePermission { $body.EmailAddress = $EmailAddress } Role { - $body.$key = ($PSBoundParameters[$key]).ToLower() + $body.$key = ($PSBoundParameters[$key]).ToLower().Replace("fileorganizer","fileOrganizer") } Type { $body.$key = ($PSBoundParameters[$key]).ToLower() diff --git a/README.md b/README.md index a1c0e76f..aeadc9b0 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,11 @@ Update-GSSheetValue Export-GSSheet [Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md) +#### 2.26.3 + +* [Issue #182](https://github.com/scrthq/PSGSuite/issues/182) - _Thanks, [@aitcriver](https://github.com/aitcriver)!_ + * Added: `FileOrganizer` role to `ValidateSet` for parameter `Role` on function `Add-GSDrivePermission` + #### 2.26.2 * [Issue #177](https://github.com/scrthq/PSGSuite/issues/177)