From 4371b627d51ffc5af9498fa1877d8e519a5f2c6e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 18 Feb 2001 15:14:56 +0000 Subject: - added fine-grained user permission system which allows us to give certain users access to specific administration sections only. Ex. a FAQ maintainer can only edit the FAQ, and members of an "editorial board" can only edit comments, diaries and stories, .. - code review => rewrote include/user.inc which is much easier now - fixed 4 small bugs --- includes/story.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/story.inc') diff --git a/includes/story.inc b/includes/story.inc index 04e93661a..5d99505d6 100644 --- a/includes/story.inc +++ b/includes/story.inc @@ -13,7 +13,7 @@ class Story { function story_visible($story) { global $user; - return ($story->status == 2) || ($story->status == 1 && $user->id) || user_permission($user); + return ($story->status == 2) || ($story->status == 1 && $user->id) || user_access($user, "story"); } ?> \ No newline at end of file -- cgit v1.2.3