Skip to content

Commit

Permalink
!deploy v2.26.3 with fix for #182
Browse files Browse the repository at this point in the history
## 2.26.3

* [Issue #182](#182) - _Thanks, [@aitcriver](https://github.com/aitcriver)!_
  * Added: `FileOrganizer` role to `ValidateSet` for parameter `Role` on function `Add-GSDrivePermission`
  • Loading branch information
scrthq authored Apr 26, 2019
2 parents feb1b67 + a0886d1 commit acb007e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

* [Changelog](#changelog)
* [2.26.3](#2263)
* [2.26.2](#2262)
* [2.26.1](#2261)
* [2.26.0](#2260)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/PSGSuite.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 3 additions & 2 deletions PSGSuite/Public/Drive/Add-GSDrivePermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function Add-GSDrivePermission {
* "Commenter"
* "Reader"
* "Organizer"
* "FileOrganizer"
.PARAMETER Type
The type of the grantee
Expand Down Expand Up @@ -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)]
Expand Down Expand Up @@ -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()
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acb007e

Please sign in to comment.