mirror of
https://github.com/VKCOM/vk-ios-sdk.git
synced 2024-09-11 06:45:37 +03:00
Fix the auth permission values.
This commit is contained in:
parent
aa404ef3cc
commit
dfc4eaf52b
@ -46,18 +46,18 @@ NSArray *VKParseVkPermissionsFromInteger(NSInteger permissionsValue) {
|
||||
if (permissionsValue & 1) [res addObject:VK_PER_NOTIFY];
|
||||
if (permissionsValue & 2) [res addObject:VK_PER_FRIENDS];
|
||||
if (permissionsValue & 4) [res addObject:VK_PER_PHOTOS];
|
||||
if (permissionsValue & 8) [res addObject:VK_PER_VIDEO];
|
||||
if (permissionsValue & 16) [res addObject:VK_PER_PAGES];
|
||||
if (permissionsValue & 128) [res addObject:VK_PER_STATUS];
|
||||
if (permissionsValue & 1024) [res addObject:VK_PER_NOTES];
|
||||
if (permissionsValue & 2048) [res addObject:VK_PER_MESSAGES];
|
||||
if (permissionsValue & 4096) [res addObject:VK_PER_WALL];
|
||||
if (permissionsValue & 8192) [res addObject:VK_PER_ADS];
|
||||
if (permissionsValue & 32768) [res addObject:VK_PER_OFFLINE];
|
||||
if (permissionsValue & 65536) [res addObject:VK_PER_DOCS];
|
||||
if (permissionsValue & 131072) [res addObject:VK_PER_GROUPS];
|
||||
if (permissionsValue & 262144) [res addObject:VK_PER_NOTIFICATIONS];
|
||||
if (permissionsValue & 524288) [res addObject:VK_PER_STATS];
|
||||
if (permissionsValue & 1048576) [res addObject:VK_PER_MARKET];
|
||||
if (permissionsValue & 16) [res addObject:VK_PER_VIDEO];
|
||||
if (permissionsValue & 128) [res addObject:VK_PER_PAGES];
|
||||
if (permissionsValue & 1024) [res addObject:VK_PER_STATUS];
|
||||
if (permissionsValue & 2048) [res addObject:VK_PER_NOTES];
|
||||
if (permissionsValue & 4096) [res addObject:VK_PER_MESSAGES];
|
||||
if (permissionsValue & 8192) [res addObject:VK_PER_WALL];
|
||||
if (permissionsValue & 32768) [res addObject:VK_PER_ADS];
|
||||
if (permissionsValue & 65536) [res addObject:VK_PER_OFFLINE];
|
||||
if (permissionsValue & 131072) [res addObject:VK_PER_DOCS];
|
||||
if (permissionsValue & 262144) [res addObject:VK_PER_GROUPS];
|
||||
if (permissionsValue & 524288) [res addObject:VK_PER_NOTIFICATIONS];
|
||||
if (permissionsValue & 1048576) [res addObject:VK_PER_STATS];
|
||||
if (permissionsValue & 134217728) [res addObject:VK_PER_MARKET];
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user