Answers.Body: <p>You are seeing this because you have <code>'devMode' =&gt; true,</code> in your <code>config/general</code> try switching to <code>false</code> and should hit a 'user friendly' message</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-27T12:59:54.280Z
Answers.Text: thank you so much
Answers.UserDisplayName: dyanmic Dreamz
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-27T13:00:51.383Z
Answers.Text: but can you explain me what actually happening there
Answers.UserDisplayName: dyanmic Dreamz
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-27T18:26:17.120Z
Answers.Text: @dyanmicDreamz This should help: https://craftcms.com/guides/what-dev-mode-does
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-27T10:52:56.210Z
Answers.LastActivityDate: 2019-05-27T10:52:56.210Z
Answers.UserDisplayName: Oli
Body: <p>when I login to my Craft CMS website via a normal user that user doesn't have permission to login to the Control Panel, it displays some error like <code>HTTP 403 – Forbidden – yii\web\ForbiddenHttpException</code>.</p>
  
  <p>This error is correct but I want to display some message instead of this error.</p>
  
Tags: <craft3><login>
Title: Show error when normal user try to login in CP
ThreadText: # Show error when normal user try to login in CP
  
  (Asked by: username_0 on 2019-05-27)
  
  when I login to my Craft CMS website via a normal user that user doesn't have permission to login to the Control Panel, it displays some error like `HTTP 403 – Forbidden – yii\web\ForbiddenHttpException`.
  
  This error is correct but I want to display some message instead of this error.
  
  **Tags:** craft3, login
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-05-27. Score: 1
  
  You are seeing this because you have `'devMode' => true,` in your `config/general` try switching to `false` and should hit a 'user friendly' message
  
  > **Comments:**
  > **username_0**: thank you so much  
  > **username_0**: but can you explain me what actually happening there  
  > **username_2**: @username_0 This should help: https://craftcms.com/guides/what-dev-mode-does  
  
  ---
  
  