Skip to content

Commit

Permalink
!deploy v2.12.1 to fix Get-GSDrivePermission
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Jul 26, 2018
1 parent be1643b commit 41c05c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- TOC -->

- [Changelog](#changelog)
- [2.12.1](#2121)
- [2.12.0](#2120)
- [2.11.0](#2110)
- [2.10.2](#2102)
Expand Down Expand Up @@ -44,6 +45,10 @@

<!-- /TOC -->

## 2.12.1

* Fixed: `Get-GSDrivePermission` now returns all fields (including EmailAddress)

## 2.12.0

* Added: `Get-GSChatMember`, `Get-GSChatMessage`, `Get-GSChatSpace`, `Remove-GSChatMessage`, `Send-GSChatMessage`, `Add-GSChatButton`, `Add-GSChatCard`, `Add-GSChatCardAction`, `Add-GSChatCardSection`, `Add-GSChatImage`, `Add-GSChatKeyValue`, `Add-GSChatOnClick`, `Add-GSChatTextParagraph`
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.12.0'
ModuleVersion = '2.12.1'

# ID used to uniquely identify this module
GUID = '9d751152-e83e-40bb-a6db-4c329092aaec'
Expand Down
3 changes: 3 additions & 0 deletions PSGSuite/Public/Drive/Get-GSDrivePermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ function Get-GSDrivePermission {
if ($PermissionId) {
foreach ($per in $PermissionId) {
$request = $service.Permissions.Get($FileId,$per)
$request.SupportsTeamDrives = $true
$request.Fields = "*"
Write-Verbose "Getting Permission Id '$per' on File '$FileId' for user '$User'"
$request.Execute() | Add-Member -MemberType NoteProperty -Name 'User' -Value $User -PassThru | Add-Member -MemberType NoteProperty -Name 'FileId' -Value $FileId -PassThru
}
Expand All @@ -71,6 +73,7 @@ function Get-GSDrivePermission {
$request = $service.Permissions.List($FileId)
$request.SupportsTeamDrives = $true
$request.PageSize = $PageSize
$request.Fields = "*"
Write-Verbose "Getting Permission list on File '$FileId' for user '$User'"
[int]$i = 1
do {
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ Update-GSSheetValue Export-GSSheet

### Most recent changes

#### 2.12.1

* Fixed: `Get-GSDrivePermission` now returns all fields (including EmailAddress)

#### 2.12.0

* Added: `Get-GSChatMember`, `Get-GSChatMessage`, `Get-GSChatSpace`, `Remove-GSChatMessage`, `Send-GSChatMessage`, `Add-GSChatButton`, `Add-GSChatCard`, `Add-GSChatCardAction`, `Add-GSChatCardSection`, `Add-GSChatImage`, `Add-GSChatKeyValue`, `Add-GSChatOnClick`, `Add-GSChatTextParagraph`
Expand Down

0 comments on commit 41c05c7

Please sign in to comment.