You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
If a user attempts to view an issue they don't have permission for, say they're following a link from a document to an old project that has had the 'Browse Project' permission removed, they currently get a page saying "You can't view this issue, It may have been deleted or you don't have permission to view it."
Is there anyway to customise this screen? We're required to have access to all old issues for safety reasons, but we also have about 70 projects that are no longer being worked on and haven't been for years. I'd like to hide them from general users, but in the rare case somebody does need to access one I want to make it clear what to do.
Hi @cameronshiell ,
Actually a good question
There might be a page (template) that you can probably modify on the server, but without impacting the files you can try to create a redirection to a page or something that would give you information about projects, contact information, etc.
You should achieve it by adding a piece of JS code into your Announcement Banner..
How would the JS look like?
The idea behind the code is that when you load that error page containing specific element that is unique (in that case DIV with ID):
error-image.error-image-canNotBeViewed
you can do something (in that case whatever you want). I suggest a redirection somewhere (to a Confluence page for example), but you can also try to modify the page using JS if you know how to do it (of course)
So the final code would be something simple like this..
<script type="text/javascript">
jQuery(window).load(function(){
if (AJS.$("span.error-image.error-image-canNotBeViewed").length !== 0) {
var new_path = "https://google.com"
window.location.replace(new_path);
console.log("Redirection to a new page");
return false;
}
});
</script>
I hope it helps :)
This is a cool trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.