Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e9a5c1cf
Commit
e9a5c1cf
authored
Sep 01, 2008
by
Richard Mansfield
Browse files
Group nav for edit/delete forum topic pages
parent
79c87954
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/interaction/forum/deletetopic.php
View file @
e9a5c1cf
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
*/
*/
define
(
'INTERNAL'
,
1
);
define
(
'INTERNAL'
,
1
);
define
(
'MENUITEM'
,
'groups'
);
define
(
'MENUITEM'
,
'groups
/forums
'
);
require
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/init.php'
);
require
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/init.php'
);
safe_require
(
'interaction'
,
'forum'
);
safe_require
(
'interaction'
,
'forum'
);
require
(
'group.php'
);
require
(
'group.php'
);
...
@@ -59,6 +59,8 @@ if (!$topic) {
...
@@ -59,6 +59,8 @@ if (!$topic) {
throw
new
NotFoundException
(
get_string
(
'cantfindtopic'
,
'interaction.forum'
,
$topicid
));
throw
new
NotFoundException
(
get_string
(
'cantfindtopic'
,
'interaction.forum'
,
$topicid
));
}
}
define
(
'GROUP'
,
$topic
->
group
);
$membership
=
user_can_access_forum
((
int
)
$topic
->
forumid
);
$membership
=
user_can_access_forum
((
int
)
$topic
->
forumid
);
$moderator
=
(
bool
)(
$membership
&
INTERACTION_FORUM_MOD
);
$moderator
=
(
bool
)(
$membership
&
INTERACTION_FORUM_MOD
);
...
...
htdocs/interaction/forum/edittopic.php
View file @
e9a5c1cf
...
@@ -69,6 +69,7 @@ if (!$forum) {
...
@@ -69,6 +69,7 @@ if (!$forum) {
throw
new
NotFoundException
(
get_string
(
'cantfindforum'
,
'interaction.forum'
,
$forumid
));
throw
new
NotFoundException
(
get_string
(
'cantfindforum'
,
'interaction.forum'
,
$forumid
));
}
}
define
(
'GROUP'
,
$forum
->
groupid
);
$membership
=
user_can_access_forum
((
int
)
$forumid
);
$membership
=
user_can_access_forum
((
int
)
$forumid
);
$moderator
=
(
bool
)(
$membership
&
INTERACTION_FORUM_MOD
);
$moderator
=
(
bool
)(
$membership
&
INTERACTION_FORUM_MOD
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment