Skip to content

Commit

Permalink
Merge branch 'v0.92'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Mar 2, 2011
2 parents 0f1dfc8 + 87aad38 commit 7d4bd56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/session/SessionMain.cpp
Expand Up @@ -1594,7 +1594,8 @@ int main (int argc, char * const argv[])
core::system::setenv(kRStudioUserIdentity, options.userIdentity());

// ensure we aren't being started as a low (priviliged) account
if (core::system::currentUserIsPrivilleged(options.minimumUserId()))
if (serverMode &&
core::system::currentUserIsPrivilleged(options.minimumUserId()))
{
Error error = systemError(boost::system::errc::permission_denied,
ERROR_LOCATION);
Expand Down

0 comments on commit 7d4bd56

Please sign in to comment.