mirror of
https://github.com/VKCOM/vk-ios-sdk.git
synced 2024-09-11 06:45:37 +03:00
Fixed #439
This commit is contained in:
parent
5061d72908
commit
963584a926
@ -137,7 +137,7 @@ static NSString *VK_ACCESS_TOKEN_DEFAULTS_KEY = @"VK_ACCESS_TOKEN_DEFAULTS_KEY_D
|
||||
|
||||
+ (void)authorize:(NSArray *)permissions withOptions:(VKAuthorizationOptions)options {
|
||||
permissions = permissions ?: @[];
|
||||
NSMutableSet *permissionsSet = [NSMutableSet setWithArray:permissions ?: @[]];
|
||||
NSMutableSet *permissionsSet = [NSMutableSet setWithArray:permissions];
|
||||
|
||||
if (options & VKAuthorizationOptionsUnlimitedToken) {
|
||||
[permissionsSet addObject:VK_PER_OFFLINE];
|
||||
|
Loading…
Reference in New Issue
Block a user