changed: permission to winix function 'who' and 'last'

(only logged users can use these functions)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@826 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-04-06 08:11:25 +00:00
parent 1d83cf42a1
commit 920290e9dc
4 changed files with 17 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix * This file is a part of Winix
* and is not publicly distributed * and is not publicly distributed
* *
* Copyright (c) 2008-2010, Tomasz Sowa * Copyright (c) 2008-2012, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
*/ */
@@ -19,5 +19,11 @@ Last::Last()
} }
bool Last::HasAccess()
{
return cur->session->puser != 0;
}
} // namespace } // namespace

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix * This file is a part of Winix
* and is not publicly distributed * and is not publicly distributed
* *
* Copyright (c) 2010, Tomasz Sowa * Copyright (c) 2010-2012, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
*/ */
@@ -23,6 +23,7 @@ class Last : public FunctionBase
public: public:
Last(); Last();
bool HasAccess();
private: private:

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix * This file is a part of Winix
* and is not publicly distributed * and is not publicly distributed
* *
* Copyright (c) 2008-2010, Tomasz Sowa * Copyright (c) 2008-2012, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
*/ */
@@ -19,6 +19,11 @@ Who::Who()
} }
bool Who::HasAccess()
{
return cur->session->puser != 0;
}
} // namespace } // namespace

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix * This file is a part of Winix
* and is not publicly distributed * and is not publicly distributed
* *
* Copyright (c) 2010, Tomasz Sowa * Copyright (c) 2010-2012, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
*/ */
@@ -23,6 +23,7 @@ class Who : public FunctionBase
public: public:
Who(); Who();
bool HasAccess();
private: private: