diff --git a/functions/last.cpp b/functions/last.cpp index 33247fa..0615076 100755 --- a/functions/last.cpp +++ b/functions/last.cpp @@ -2,7 +2,7 @@ * This file is a part of Winix * and is not publicly distributed * - * Copyright (c) 2008-2010, Tomasz Sowa + * Copyright (c) 2008-2012, Tomasz Sowa * All rights reserved. * */ @@ -19,5 +19,11 @@ Last::Last() } +bool Last::HasAccess() +{ + return cur->session->puser != 0; +} + + } // namespace diff --git a/functions/last.h b/functions/last.h index 1242cb7..e54fc9c 100755 --- a/functions/last.h +++ b/functions/last.h @@ -2,7 +2,7 @@ * This file is a part of Winix * and is not publicly distributed * - * Copyright (c) 2010, Tomasz Sowa + * Copyright (c) 2010-2012, Tomasz Sowa * All rights reserved. * */ @@ -23,6 +23,7 @@ class Last : public FunctionBase public: Last(); + bool HasAccess(); private: diff --git a/functions/who.cpp b/functions/who.cpp index 7571a50..2509904 100755 --- a/functions/who.cpp +++ b/functions/who.cpp @@ -2,7 +2,7 @@ * This file is a part of Winix * and is not publicly distributed * - * Copyright (c) 2008-2010, Tomasz Sowa + * Copyright (c) 2008-2012, Tomasz Sowa * All rights reserved. * */ @@ -19,6 +19,11 @@ Who::Who() } +bool Who::HasAccess() +{ + return cur->session->puser != 0; +} + } // namespace diff --git a/functions/who.h b/functions/who.h index 1e407da..0beb339 100755 --- a/functions/who.h +++ b/functions/who.h @@ -2,7 +2,7 @@ * This file is a part of Winix * and is not publicly distributed * - * Copyright (c) 2010, Tomasz Sowa + * Copyright (c) 2010-2012, Tomasz Sowa * All rights reserved. * */ @@ -23,6 +23,7 @@ class Who : public FunctionBase public: Who(); + bool HasAccess(); private: