Subversion Repositories SmartDukaan

Rev

Rev 21108 | Rev 21112 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21108 Rev 21110
Line 745... Line 745...
745
		        'type' => 'LEFT',
745
		        'type' => 'LEFT',
746
		        'conditions' => array(
746
		        'conditions' => array(
747
		            'Useractive.user_id = User.id',
747
		            'Useractive.user_id = User.id',
748
		        )
748
		        )
749
		    ),*/
749
		    ),*/
750
		    array('table' => 'appacls',
750
		    array('table' => 'user_docs',
751
		        'alias' => 'Appacl',
751
		        'alias' => 'UserDoc',
752
		        'type' => 'LEFT',
752
		        'type' => 'LEFT',
753
		        'conditions' => array(
753
		        'conditions' => array(
754
		            'Appacl.user_id = User.id',
754
		            'UserDoc.user_id = User.id',
755
		        )
755
		        )
756
		    )
756
		    )
757
	    );
757
	    );
758
		$this->Paginator->settings = $options;
758
		$this->Paginator->settings = $options;
759
		$users = $this->Paginator->paginate();		
759
		$users = $this->Paginator->paginate();		
Line 1604... Line 1604...
1604
			return false;
1604
			return false;
1605
		}
1605
		}
1606
		
1606
		
1607
	}
1607
	}
1608
	
1608
	
1609
	function sendFile($id) {
1609
	function admin_image($id) {
1610
		$id = '/RetailerDocs/'.$id;
1610
		$id = '/RetailerDocs/'.$id;
1611
		$file = $this->Attachment->getFile($id);
1611
		$file = $this->Attachment->getFile($id);
1612
	    $this->response->file($file['path']);
1612
	    $this->response->file($file['path']);
1613
	    // Return response object to prevent controller from trying to render
1613
	    // Return response object to prevent controller from trying to render
1614
	    // a view
1614
	    // a view