Commit b07267bf authored by Sanad Liaquat's avatar Sanad Liaquat Committed by Mike Jang

Fix enforce_pat_expiration feature flag in docs

parent 0fa1d604
...@@ -159,19 +159,19 @@ To do this: ...@@ -159,19 +159,19 @@ To do this:
### Enable or disable optional enforcement of Personal Access Token expiry Feature **(CORE ONLY)** ### Enable or disable optional enforcement of Personal Access Token expiry Feature **(CORE ONLY)**
Optional Enforcement of Personal Access Token Expiry is under development and not ready for production use. It is deployed behind a feature flag that is **disabled by default**. Optional Enforcement of Personal Access Token Expiry is deployed behind a feature flag and is **disabled by default**.
[GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md) can enable it for your instance from the [rails console](../../../administration/feature_flags.md#start-the-gitlab-rails-console). [GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md) can enable it for your instance from the [rails console](../../../administration/feature_flags.md#start-the-gitlab-rails-console).
To enable it: To enable it:
```ruby ```ruby
Feature.enable(:enforce_personal_access_token_expiration) Feature.enable(:enforce_pat_expiration)
``` ```
To disable it: To disable it:
```ruby ```ruby
Feature.disable(:enforce_personal_access_token_expiration) Feature.disable(:enforce_pat_expiration)
``` ```
## Disabling user profile name changes **(PREMIUM ONLY)** ## Disabling user profile name changes **(PREMIUM ONLY)**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment