Skip to content

Commit

Permalink
Controller_Rest_User - change 403 --> 404.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadlaws committed Jun 14, 2013
1 parent 6b40799 commit 18f4386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/classes/Gallery/Controller/Rest/User.php
Expand Up @@ -35,7 +35,7 @@ class Gallery_Controller_Rest_User extends Controller_Rest {
static function get_entity($id, $params) {
$user = Identity::lookup_user($id);
if (!Identity::can_view_profile($user)) {
throw Rest_Exception::factory(403);
throw Rest_Exception::factory(404);
}

// Add fields from a whitelist.
Expand Down

0 comments on commit 18f4386

Please sign in to comment.