diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-02-04 22:09:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-02-04 22:09:38 +0000 |
commit | de2e393933bb7163148c5010a7c14be9004117bf (patch) | |
tree | fa1e6a2984bb5de5ed5f22c599397faca979b34c /includes/story.inc | |
parent | b1d395d52d160c203edff69c323c031f833a8219 (diff) | |
download | brdo-de2e393933bb7163148c5010a7c14be9004117bf.tar.gz brdo-de2e393933bb7163148c5010a7c14be9004117bf.tar.bz2 |
- various updates, bugfixes and improvements
Diffstat (limited to 'includes/story.inc')
-rw-r--r-- | includes/story.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/story.inc b/includes/story.inc index 2ec39ca16..a1ba62796 100644 --- a/includes/story.inc +++ b/includes/story.inc @@ -11,4 +11,9 @@ class Story { } } +function story_visible($story) { + global $user; + return ($story->status == 1 && $user->id) || ($story->status == 2) || user_permission(); +} + ?>
\ No newline at end of file |