Add demo mode restrictions to user operations.
Added functionalities to restrict certain user operations like update, password change, and deletion in demo mode. This is done to prevent demo users from modifying crucial data. Helper methods are created for standard re-usable checks. Also, Blade directive is added for frontend UI demo checks.
This commit is contained in:
@@ -72,5 +72,6 @@
|
||||
"Captcha User Agent does not match": "The CAPTCHA verification state has been rejected because the User Agent does not match. Please check and ensure that you are using the same User Agent.",
|
||||
"The time for captcha verification has passed": "The time for captcha verification has passed.",
|
||||
"Captcha does not pass verification": "Captcha does not pass verification.",
|
||||
"Add code to the site": "Add code to the site"
|
||||
"Add code to the site": "Add code to the site",
|
||||
"Demo Mode": "!!! Demo Mode !!!"
|
||||
}
|
||||
|
@@ -72,5 +72,6 @@
|
||||
"Captcha User Agent does not match": "Отклонено состояние проверки CAPTCHA, так как User Agent не совпадает. Пожалуйста, проверьте и убедитесь, что вы используете тот же User Agent.",
|
||||
"The time for captcha verification has passed": "Время верификации капчи прошло.",
|
||||
"Captcha does not pass verification": "Капча не проходит проверку.",
|
||||
"Add code to the site": "Добавьте код на сайт"
|
||||
"Add code to the site": "Добавьте код на сайт",
|
||||
"Demo Mode": "!!! Включён демо режим !!!"
|
||||
}
|
||||
|
Reference in New Issue
Block a user