version 1.1172.2.147, 2022/02/27 02:19:13
|
version 1.1172.2.148, 2024/07/01 23:30:15
|
Line 3437 sub can_edit_resource {
|
Line 3437 sub can_edit_resource {
|
return; |
return; |
} |
} |
} elsif (!$crsedit) { |
} elsif (!$crsedit) { |
|
if ($env{'request.role'} =~ m{^st\./$cdom/$cnum}) { |
# |
# |
# No edit allowed where CC has switched to student role. |
# No edit allowed where CC has switched to student role. |
# |
# |
return; |
return; |
|
} elsif (($resurl !~ m{^/res/$match_domain/$match_username/}) || |
|
($resurl =~ m{^/res/lib/templates/})) { |
|
return; |
|
} |
} |
} |
} |
} |
} |
} |