                 self.selectGroupButton.enabled = self.groups.count > 1
             }
         }, failureBlock: {(error: NSError!) in
-                //                self.noAccessView.frame = self.view.bounds
-                //                self.tableView.scrollEnabled = false
-                //                self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None
-                //                self.view.addSubview(self.noAccessView)
+            self.collectionView?.hidden = true
+            self.view.addSubview(DKPermissionView.permissionView(.Photo))
         })
     }
     

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        self.collectionView!.backgroundColor = UIColor.whiteColor()
        self.collectionView!.allowsMultipleSelection = true

                permissionView.permitButton.setTitleColor(UIColor(red: 0, green: 122.0 / 255, blue: 1, alpha: 1), forState: .Normal)
                permissionView.permitButton.addTarget(permissionView, action: "gotoSettings", forControlEvents: .TouchUpInside)
            }
            permissionView.permitButton.titleLabel?.font = UIFont.boldSystemFontOfSize(16)
            permissionView.permitButton.sizeToFit()
            permissionView.permitButton.center = CGPoint(x: permissionView.titleLabel.center.x,
                y: permissionView.titleLabel.bounds.height + 40)
