projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updates the hooks in module/carnet.php to use the new PlTokenHook.
[platal.git]
/
include
/
security.inc.php
diff --git
a/include/security.inc.php
b/include/security.inc.php
index
3def558
..
2f77f82
100644
(file)
--- a/
include/security.inc.php
+++ b/
include/security.inc.php
@@
-78,7
+78,10
@@
function check_email($email, $message)
function check_account()
{
- return S::v('watch_account');
+ if (S::user()) {
+ return S::user()->watch;
+ }
+ return false;
}
function check_redirect($red = null)